wzh %!s(int64=3) %!d(string=hai) anos
pai
achega
84cad8fd55
Modificáronse 3 ficheiros con 10 adicións e 4 borrados
  1. 8 2
      miniprogram/apis/api.js
  2. 1 1
      miniprogram/apis/apiConfig.js
  3. 1 1
      project.private.config.json

+ 8 - 2
miniprogram/apis/api.js

@@ -3,11 +3,17 @@ const {
 } = require("./apiConfig")
 
 function getApi(url, data) {
-  return api(url, data, "get")
+  return api(url, {
+    ...data,
+    loginAccountId: wx.getStorageSync('loginAccountId')
+  }, "get")
 }
 
 function postApi(url, data) {
-  return api(url, data, "post")
+  return api(url, {
+    ...data,
+    loginAccountId: wx.getStorageSync('loginAccountId')
+  }, "post")
 
 }
 

+ 1 - 1
miniprogram/apis/apiConfig.js

@@ -1,5 +1,5 @@
 let v = wx.getAccountInfoSync()
-let apiUrl = `${v.miniProgram.envVersion == 'release'?'https://interface.huihenduo.com.cn/hhd-pat-proxy-app/':'https://interface.huihenduo.com.cn/hhd-pat-proxy-app-dev/'}`
+let apiUrl = `${v.miniProgram.envVersion == 'release'?'https://interface.huihenduo.cc/hhd-proxy/':'https://interface.huihenduo.cc/hhd-proxy-dev/'}`
 // let apiUrl = 'https://interface.huihenduo.com.cn/hhd-pat-proxy-app/'
 
 function api(url, data, method) {

+ 1 - 1
project.private.config.json

@@ -48,7 +48,7 @@
     }
   },
   "setting": {
-    "urlCheck": true,
+    "urlCheck": false,
     "coverView": true,
     "compileHotReLoad": true,
     "lazyloadPlaceholderEnable": false,