|
|
@@ -59,7 +59,8 @@ export function request(code, options = {}, start = false) { |
|
|
|
rbacSource: 'MINI_PROGRAM', |
|
|
|
accessToken: getItem(StorageKeys.Token) |
|
|
|
} |
|
|
|
options.url = envs[process.env.NODE_ENV].baseUrl + '/api/interfaceMidGroundIn' |
|
|
|
// options.url = envs[process.env.NODE_ENV].baseUrl + '/api/interfaceMidGroundIn' |
|
|
|
options.url = envs[process.env.NODE_ENV].baseUrl + '/ifzt/api/interfaceMidGroundIn' |
|
|
|
// options.url = envs[process.env.NODE_ENV].baseUrl + '/ifzt/api/interfaceMidGroundIn' |
|
|
|
//默认json数据格式提交` |
|
|
|
let contentType = 'application/x-www-form-urlencoded' |
|
|
@@ -167,7 +168,7 @@ export function request(code, options = {}, start = false) { |
|
|
|
} |
|
|
|
} |
|
|
|
options.fail = (err) => { |
|
|
|
console.log('请求失败返回参数:', res) |
|
|
|
// console.log('请求失败返回参数:', res) |
|
|
|
uni.hideLoading() |
|
|
|
console.log('请求错误', err) |
|
|
|
// if (err == 'openId无效,请核实传参!') { |