Commit 1fa3bd42 by 庄冰

aaa

parent 59d7e29f
...@@ -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_wx8aa8a8d4ff3da8bd"; this.prefix="wx_ticket_wx4c91e81bbb6039cd";
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_wx8aa8a8d4ff3da8bd"; return "wx_ticket_wx4c91e81bbb6039cd";
} }
async get(access_token){//公众号appid async get(access_token){//公众号appid
var key = this.prefix; var key = this.prefix;
......
...@@ -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_wx8aa8a8d4ff3da8bd"; this.prefix="wx_toekn_wx4c91e81bbb6039cd";
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_wx8aa8a8d4ff3da8bd"; return "wx_toekn_wx4c91e81bbb6039cd";
} }
async get(){//公众号appid async get(){//公众号appid
var key = this.prefix; var key = this.prefix;
......
...@@ -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({
......
...@@ -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 = "wx8aa8a8d4ff3da8bd"; ret.appId = "wx4c91e81bbb6039cd";
console.log('ret', ret) console.log('ret', ret)
return system.getResultSuccess(ret); return system.getResultSuccess(ret);
}else{ }else{
......
...@@ -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":"wx8aa8a8d4ff3da8bd" "appId":"wx4c91e81bbb6039cd"
}, },
"requestId":"5dc78d501b6d42c2af0f157cb1cceb28" "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