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

+ 2 - 2
app/service/weixin.js

@@ -38,9 +38,9 @@ class WeixinAuthService extends AxiosService {
   async fetchUnionID(openid) {
     // TODO:参数检查和默认参数处理
     assert(openid);
-    const appid = 'wx6db5d25b3e7cfc14';
+    const appid = 'wxdf3ed83c095be97a';
     const grant_type = 'client_credential';
-    const secret = 'c4e3c4f74f5c1583e3b6a8ae77925d71';
+    const secret = '748df7c2a75077a79ae0c971b1638244';
     // TODO: 获得用户信息
     const url = 'http://wx.cc-lotus.info/api.weixin.qq.com/cgi-bin/token?appid=' + appid + '&grant_type=' + grant_type + '&secret=' + secret;
     const res = await this.ctx.curl(url, {

+ 1 - 1
config/config.default.js

@@ -33,7 +33,7 @@ module.exports = appInfo => {
   };
 
   config.wxapi = {
-    appid: 'wx6db5d25b3e7cfc14', // 微信公众号APPID
+    appid: 'wxdf3ed83c095be97a', // 微信公众号APPID
     baseUrl: 'http://wx.cc-lotus.info', // 微信网关地址
     mchid: '1505364491', // 商户ID
     mchkey: '1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik9', // 商户key