|
@@ -2,19 +2,19 @@ class HTTP {
|
|
|
constructor() {
|
|
|
this.ENV = wx.getAccountInfoSync().miniProgram.envVersion;
|
|
|
this.urls = [{
|
|
|
- name: "云链E订单",
|
|
|
- url: "https://www.cnyunl.com"
|
|
|
+ name: "美大正式",
|
|
|
+ url: "https://crm.meida.com:16691"
|
|
|
}, {
|
|
|
name: "楚楚",
|
|
|
url: "https://cucu.cnyunl.com:8079"
|
|
|
}, {
|
|
|
name: "开发环境",
|
|
|
- url: "http://61.164.207.46:8200"
|
|
|
+ url: "http://61.164.207.46:8300"
|
|
|
}]
|
|
|
if (this.ENV === 'release') { // 正式版
|
|
|
- this.baseUrl = "https://www.cnyunl.com";
|
|
|
+ this.baseUrl = "https://crm.meida.com:16691";
|
|
|
} else {
|
|
|
- this.baseUrl = "http://61.164.207.46:8200";
|
|
|
+ this.baseUrl = "http://61.164.207.46:8300";
|
|
|
}
|
|
|
console.log("接口地址:", this.baseUrl)
|
|
|
}
|
|
@@ -23,7 +23,8 @@ class HTTP {
|
|
|
data = {},
|
|
|
method = "POST",
|
|
|
header = {
|
|
|
- 'content-type': 'application/json'
|
|
|
+ 'content-type': 'application/json',
|
|
|
+ "accesstoken": data.accesstoken || wx.getStorageSync('userMsg').token || ''
|
|
|
},
|
|
|
showLoading = '加载中...'
|
|
|
}) {
|