Browse Source

Merge branch 'master' of http://git.cc-lotus.info/live-platform/service-onlive

reloaded 4 years ago
parent
commit
7339b5251c
2 changed files with 4 additions and 4 deletions
  1. 1 1
      app/router.js
  2. 3 3
      config/config.default.js

+ 1 - 1
app/router.js

@@ -46,7 +46,7 @@ module.exports = app => {
   router.post('/api/onlive/register', controller.roomuser.register);
 
   // 微信端访问地址
-  router.get('/api/onlive/wxchat', controller.weixin.auth); // 微信登录
+  router.get('/api/onlive/auth', controller.weixin.auth); // 微信登录
   // 微信端访问地址
   router.get('/api/onlive/wxchattest', controller.weixin.authTest); // 微信登录测试
 };

+ 3 - 3
config/config.default.js

@@ -38,7 +38,7 @@ module.exports = appInfo => {
     baseUrl: 'http://wx.cc-lotus.info', // 微信网关地址
     mchid: '1505364491', // 商户ID
     mchkey: '1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik9', // 商户key
-    wxurl: 'http://zb.liaoningdoupo.com/api/wxpayback',
+    wxurl: 'https://zb.liaoningdoupo.com/api/wxpayback',
     payurl: 'https://api.mch.weixin.qq.com/pay/unifiedorder',
   };
 
@@ -46,9 +46,9 @@ module.exports = appInfo => {
   config.hostHeaders = 'x-forwarded-host';
 
   // 服务器发布路径
-  config.baseUrl = 'http://zb.liaoningdoupo.com';
+  config.baseUrl = 'https://zb.liaoningdoupo.com';
   // 认证回调地址
-  config.authUrl = '/api/onlive/wxchat';
+  config.authUrl = '/api/onlive/auth';
 
   // 直播appid与key
   config.sdkappid = 1400380125;