bayi пре 2 година
родитељ
комит
e9af0be13a
2 измењених фајлова са 6 додато и 5 уклоњено
  1. 1 0
      pages/match/index.js
  2. 5 5
      utils/request.js

+ 1 - 0
pages/match/index.js

@@ -35,6 +35,7 @@ Page({
    * 生命周期函数--监听页面加载
    */
   onLoad(options) {
+    // console.log(decodeURIComponent(options.scene));
     this.setData({
       activityId: options.activityId
     })

+ 5 - 5
utils/request.js

@@ -6,13 +6,13 @@ const {
     envVersion
   }
 } = wx.getAccountInfoSync();
-/* if (envVersion == 'develop') {
+if (envVersion == 'develop') {
   baseUrl = 'https://reader-api.efunbox.cn/wx'
   oldUrl = 'https://reader-api.efunbox.cn'
-} else { */
-baseUrl = 'https://reader-api.ai160.com/wx'
-oldUrl = 'https://reader-api.ai160.com'
-// }
+} else {
+  baseUrl = 'https://reader-api.ai160.com/wx'
+  oldUrl = 'https://reader-api.ai160.com'
+}
 
 function request(url, method, data, oldBaseUrl = false, intercept = true) {
   let header = {