liuyu 4 년 전
부모
커밋
7a74aaa1ec
2개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      app/controller/weixin.js
  2. 4 3
      config/config.default.js

+ 1 - 1
app/controller/weixin.js

@@ -123,7 +123,7 @@ class WeixinController extends Controller {
 
         } else {
           console.log('rrr0000--->' + redirect_uri);
-          const touri = `${this.app.config.baseUrl}/mobile/error`;
+          const touri = `${this.app.config.baseUrl}/livemobile/registered`;
           const to_uri = urljoin(touri, `?openid=${openid}`);
           // TODO: 重定性页面
           this.ctx.redirect(to_uri);

+ 4 - 3
config/config.default.js

@@ -33,11 +33,12 @@ module.exports = appInfo => {
   };
 
   config.wxapi = {
-    appid: 'wxdf3ed83c095be97a', // 微信公众号APPID
+    // appid: 'wxdf3ed83c095be97a', // 微信公众号APPID
+    appid: 'wx39cb76688a6981ae',
     baseUrl: 'http://wx.cc-lotus.info', // 微信网关地址
     mchid: '1505364491', // 商户ID
     mchkey: '1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik9', // 商户key
-    wxurl: 'http://free.liaoningdoupo.com/api/wxpayback',
+    wxurl: 'http://zb.liaoningdoupo.com/api/wxpayback',
     payurl: 'https://api.mch.weixin.qq.com/pay/unifiedorder',
   };
 
@@ -45,7 +46,7 @@ module.exports = appInfo => {
   config.hostHeaders = 'x-forwarded-host';
 
   // 服务器发布路径
-  config.baseUrl = 'http://free.liaoningdoupo.com';
+  config.baseUrl = 'http://zb.liaoningdoupo.com';
   // 认证回调地址
   config.authUrl = '/api/onlive/wxchat';