|
@@ -6,18 +6,19 @@ const {
|
|
|
envVersion
|
|
|
}
|
|
|
} = wx.getAccountInfoSync();
|
|
|
-/* if (envVersion == 'develop') {
|
|
|
+if (envVersion == 'develop') {
|
|
|
baseUrl = 'https://reader-api.efunbox.cn/wx'
|
|
|
oldUrl = 'https://reader-api.efunbox.cn'
|
|
|
-} else { */
|
|
|
+} 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 = {
|
|
|
'uid': wx.getStorageSync('uid') || '',
|
|
|
- 'channelCode': '3001'
|
|
|
+ 'channelCode': wx.getStorageSync('user').channel == '4001' ? '4001' : '3001'
|
|
|
}
|
|
|
return new Promise((reslove, reject) => {
|
|
|
wx.request({
|