Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
1fa3bd42
Commit
1fa3bd42
authored
Feb 21, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aaa
parent
59d7e29f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
7 deletions
+15
-7
center-channel/app/base/db/cache/wxJsapiTicketCache.js
+2
-2
center-channel/app/base/db/cache/wxTokenCache.js
+2
-2
center-channel/app/base/service/impl/common/wxTokenSve.js
+9
-1
center-channel/app/base/service/impl/policy/policySve.js
+1
-1
center-channel/app/front/entry/public/apidoc/platform/policy.md
+1
-1
No files found.
center-channel/app/base/db/cache/wxJsapiTicketCache.js
View file @
1fa3bd42
...
@@ -7,7 +7,7 @@ const system=require("../../system");
...
@@ -7,7 +7,7 @@ const system=require("../../system");
class
WxJsapiTicketCache
extends
CacheBase
{
class
WxJsapiTicketCache
extends
CacheBase
{
constructor
(){
constructor
(){
super
();
super
();
this
.
prefix
=
"wx_ticket_wx
8aa8a8d4ff3da8b
d"
;
this
.
prefix
=
"wx_ticket_wx
4c91e81bbb6039c
d"
;
this
.
restClient
=
system
.
getObject
(
"util.restClient"
);
this
.
restClient
=
system
.
getObject
(
"util.restClient"
);
this
.
wxTokenSve
=
system
.
getObject
(
"service.common.wxTokenSve"
);
this
.
wxTokenSve
=
system
.
getObject
(
"service.common.wxTokenSve"
);
}
}
...
@@ -15,7 +15,7 @@ class WxJsapiTicketCache extends CacheBase{
...
@@ -15,7 +15,7 @@ class WxJsapiTicketCache extends CacheBase{
return
"应用UI配置缓存"
;
return
"应用UI配置缓存"
;
}
}
prefix
()
{
prefix
()
{
return
"wx_ticket_wx
8aa8a8d4ff3da8b
d"
;
return
"wx_ticket_wx
4c91e81bbb6039c
d"
;
}
}
async
get
(
access_token
){
//公众号appid
async
get
(
access_token
){
//公众号appid
var
key
=
this
.
prefix
;
var
key
=
this
.
prefix
;
...
...
center-channel/app/base/db/cache/wxTokenCache.js
View file @
1fa3bd42
...
@@ -7,7 +7,7 @@ const system=require("../../system");
...
@@ -7,7 +7,7 @@ const system=require("../../system");
class
WxTokenCache
extends
CacheBase
{
class
WxTokenCache
extends
CacheBase
{
constructor
(){
constructor
(){
super
();
super
();
this
.
prefix
=
"wx_toekn_wx
8aa8a8d4ff3da8b
d"
;
this
.
prefix
=
"wx_toekn_wx
4c91e81bbb6039c
d"
;
this
.
restClient
=
system
.
getObject
(
"util.restClient"
);
this
.
restClient
=
system
.
getObject
(
"util.restClient"
);
this
.
wxTokenSve
=
system
.
getObject
(
"service.common.wxTokenSve"
);
this
.
wxTokenSve
=
system
.
getObject
(
"service.common.wxTokenSve"
);
}
}
...
@@ -15,7 +15,7 @@ class WxTokenCache extends CacheBase{
...
@@ -15,7 +15,7 @@ class WxTokenCache extends CacheBase{
return
"应用UI配置缓存"
;
return
"应用UI配置缓存"
;
}
}
prefix
()
{
prefix
()
{
return
"wx_toekn_wx
8aa8a8d4ff3da8b
d"
;
return
"wx_toekn_wx
4c91e81bbb6039c
d"
;
}
}
async
get
(){
//公众号appid
async
get
(){
//公众号appid
var
key
=
this
.
prefix
;
var
key
=
this
.
prefix
;
...
...
center-channel/app/base/service/impl/common/wxTokenSve.js
View file @
1fa3bd42
...
@@ -18,7 +18,15 @@ class WxTokenService{
...
@@ -18,7 +18,15 @@ class WxTokenService{
*/
*/
async
getToken
(){
async
getToken
(){
try
{
try
{
var
url
=
"https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wx8aa8a8d4ff3da8bd&secret=5b64d43832cfd08327e9369aa455f799"
;
var
wxconfig
=
{
AppID
:
"wx4c91e81bbb6039cd"
,
Secret
:
"12048e66dba64f2581e02b306680b232"
,
Token
:
"bosstoken"
,
AccessTokenUrl
:
"https://api.weixin.qq.com/cgi-bin/token"
,
};
// var url="https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wx8aa8a8d4ff3da8bd&secret=5b64d43832cfd08327e9369aa455f799";
var
url
=
"https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wx4c91e81bbb6039cd&secret=12048e66dba64f2581e02b306680b232"
;
var
rtn
=
await
this
.
rc
.
execGet
({},
url
);
var
rtn
=
await
this
.
rc
.
execGet
({},
url
);
console
.
log
(
rtn
);
console
.
log
(
rtn
);
this
.
logDao
.
create
({
this
.
logDao
.
create
({
...
...
center-channel/app/base/service/impl/policy/policySve.js
View file @
1fa3bd42
...
@@ -70,7 +70,7 @@ class PolicyService{
...
@@ -70,7 +70,7 @@ class PolicyService{
};
};
var
string
=
this
.
raw
(
ret
)
var
string
=
this
.
raw
(
ret
)
ret
.
signature
=
this
.
sha1
(
string
)
ret
.
signature
=
this
.
sha1
(
string
)
ret
.
appId
=
"wx
8aa8a8d4ff3da8b
d"
;
ret
.
appId
=
"wx
4c91e81bbb6039c
d"
;
console
.
log
(
'ret'
,
ret
)
console
.
log
(
'ret'
,
ret
)
return
system
.
getResultSuccess
(
ret
);
return
system
.
getResultSuccess
(
ret
);
}
else
{
}
else
{
...
...
center-channel/app/front/entry/public/apidoc/platform/policy.md
View file @
1fa3bd42
...
@@ -214,7 +214,7 @@
...
@@ -214,7 +214,7 @@
"timestamp"
:
1582012108
,
"timestamp"
:
1582012108
,
"url"
:
"http://gsb.qifu.gongsibao.com/"
,
"url"
:
"http://gsb.qifu.gongsibao.com/"
,
"signature"
:
"269a120c2e47e6b324601fb6df40f932902d0ae7"
,
"signature"
:
"269a120c2e47e6b324601fb6df40f932902d0ae7"
,
"appId"
:
"wx
8aa8a8d4ff3da8b
d"
"appId"
:
"wx
4c91e81bbb6039c
d"
},
},
"requestId"
:
"5dc78d501b6d42c2af0f157cb1cceb28"
"requestId"
:
"5dc78d501b6d42c2af0f157cb1cceb28"
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment