Commit 1fa3bd42 by 庄冰

aaa

parent 59d7e29f
......@@ -7,7 +7,7 @@ const system=require("../../system");
class WxJsapiTicketCache extends CacheBase{
constructor(){
super();
this.prefix="wx_ticket_wx8aa8a8d4ff3da8bd";
this.prefix="wx_ticket_wx4c91e81bbb6039cd";
this.restClient = system.getObject("util.restClient");
this.wxTokenSve = system.getObject("service.common.wxTokenSve");
}
......@@ -15,7 +15,7 @@ class WxJsapiTicketCache extends CacheBase{
return "应用UI配置缓存";
}
prefix() {
return "wx_ticket_wx8aa8a8d4ff3da8bd";
return "wx_ticket_wx4c91e81bbb6039cd";
}
async get(access_token){//公众号appid
var key = this.prefix;
......
......@@ -7,7 +7,7 @@ const system=require("../../system");
class WxTokenCache extends CacheBase{
constructor(){
super();
this.prefix="wx_toekn_wx8aa8a8d4ff3da8bd";
this.prefix="wx_toekn_wx4c91e81bbb6039cd";
this.restClient = system.getObject("util.restClient");
this.wxTokenSve = system.getObject("service.common.wxTokenSve");
}
......@@ -15,7 +15,7 @@ class WxTokenCache extends CacheBase{
return "应用UI配置缓存";
}
prefix() {
return "wx_toekn_wx8aa8a8d4ff3da8bd";
return "wx_toekn_wx4c91e81bbb6039cd";
}
async get(){//公众号appid
var key = this.prefix;
......
......@@ -18,7 +18,15 @@ class WxTokenService{
*/
async getToken(){
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);
console.log(rtn);
this.logDao.create({
......
......@@ -70,7 +70,7 @@ class PolicyService{
};
var string = this.raw(ret)
ret.signature = this.sha1(string)
ret.appId = "wx8aa8a8d4ff3da8bd";
ret.appId = "wx4c91e81bbb6039cd";
console.log('ret', ret)
return system.getResultSuccess(ret);
}else{
......
......@@ -214,7 +214,7 @@
"timestamp":1582012108,
"url":"http://gsb.qifu.gongsibao.com/",
"signature":"269a120c2e47e6b324601fb6df40f932902d0ae7",
"appId":"wx8aa8a8d4ff3da8bd"
"appId":"wx4c91e81bbb6039cd"
},
"requestId":"5dc78d501b6d42c2af0f157cb1cceb28"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment