|
|
|
@ -250,16 +250,14 @@ module.exports = { |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
get: function (url, data, headerContentType, tentId, needAes, auth) { |
|
|
|
|
|
|
|
|
|
get: function (url, data, headerContentType, tentId, needAes, auth) {
|
|
|
|
|
|
|
|
|
|
if (needAes !== false) { |
|
|
|
|
for (var key in data) { |
|
|
|
|
data[key] = aes.aesMinEncrypt(data[key]); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
console.log(needAes !== false) |
|
|
|
|
console.log(url, data, headerContentType, tentId, needAes, 'get 请求参数'); |
|
|
|
|
|
|
|
|
|
headerContentType = headerContentType ? headerContentType : "application/x-www-form-urlencoded"; |
|
|
|
|
|
|
|
|
|
let headers = { |
|
|
|
@ -271,6 +269,7 @@ console.log(url, data, headerContentType, tentId, needAes, 'get 请求参数'); |
|
|
|
|
// const tok = store.state.userInfo.accessToken || uni.getStorageSync('userInfo').accessToken;
|
|
|
|
|
const tok = uni.getStorageSync('userInfo').accessToken; |
|
|
|
|
headers['Authorization'] = 'Bearer ' + tok; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (tentId && tentId !== "" && tentId !== null && tentId !== undefined) { |
|
|
|
|