lrf402788946 4 年之前
父節點
當前提交
92083bde15
共有 2 個文件被更改,包括 1 次插入3 次删除
  1. 0 2
      app/service/weixin.js
  2. 1 1
      config/config.default.js

+ 0 - 2
app/service/weixin.js

@@ -58,8 +58,6 @@ class WeixinAuthService extends AxiosService {
     if (req.errcode && req.errcode !== 0) throw new BusinessError(ErrorCode.SERVICE_FAULT, 'openid获取失败');
     const openid = _.get(req, 'openid');
     console.log('已获取openid信息');
-    // const access_token = await this.app.redis.get(this.access_tokenKey);
-    // if (!access_token) await this.app.redis.set(this.access_tokenKey, _.get(req, 'access_token'), 'EX', 6000);
     if (!openid) {
       this.ctx.logger.error(JSON.stringify(req.data));
       throw new BusinessError(ErrorCode.SERVICE_FAULT, '未获取到openid');

+ 1 - 1
config/config.default.js

@@ -28,7 +28,7 @@ module.exports = appInfo => {
   config.hostHeaders = 'x-forwarded-host';
 
   config.wxapi = {
-    appid: 'wxa9997e40dea04213', // 微信公众号APPID
+    appid: 'wxdf3ed83c095be97a', // 微信公众号APPID
     appSecret: '337c857cb9f66939acb499852057eca4',
     baseUrl: 'http://wx.cc-lotus.info', // 微信网关地址
     mchid: '1505364491', // 商户ID