|
|
|
@ -28,22 +28,22 @@ instance.interceptors.request.use( |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!token) { |
|
|
|
|
token = uni.getStorageSync("Authorization") || " "; |
|
|
|
|
token = uni.getStorageSync("Authorization"); |
|
|
|
|
} |
|
|
|
|
if (!unionId) { |
|
|
|
|
unionId = uni.getStorageSync("unionid") || " "; |
|
|
|
|
unionId = uni.getStorageSync("unionid"); |
|
|
|
|
} |
|
|
|
|
if (!openId) { |
|
|
|
|
openId = uni.getStorageSync("openid") || " "; |
|
|
|
|
openId = uni.getStorageSync("openid"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
config.headers["Authorization"] = token; |
|
|
|
|
config.headers["imei"] = unionId; |
|
|
|
|
config.headers["openId"] = openId; |
|
|
|
|
config.headers["dataSources"] = "MP"; |
|
|
|
|
config.headers["loginSystem"] = "MINI_APP"; |
|
|
|
|
config.headers["loginDevice"] = "LOGIN_MP_WECHAT"; |
|
|
|
|
config.headers["accountSources"] = "LOGIN_MP_WECHAT"; |
|
|
|
|
config.headers["Authorization"] = token; |
|
|
|
|
|
|
|
|
|
if (env === "production") { |
|
|
|
|
const JSESSIONID = utils.uuid(); |
|
|
|
|