|
@@ -28,10 +28,10 @@ function getHeaders(config = {}) {
|
|
// appId: 'wx92c3e55fbef6b2af',
|
|
// appId: 'wx92c3e55fbef6b2af',
|
|
// 'Content-Type': ct,
|
|
// 'Content-Type': ct,
|
|
};
|
|
};
|
|
- const token = getToken();
|
|
|
|
- if (token) {
|
|
|
|
- header['Authorization'] = `Bearer ${token}`;
|
|
|
|
- }
|
|
|
|
|
|
+ // const token = getToken();
|
|
|
|
+ // if (token) {
|
|
|
|
+ // header['Authorization'] = `Bearer ${token}`;
|
|
|
|
+ // }
|
|
|
|
|
|
const groupId = uni.getStorageSync('groupId');
|
|
const groupId = uni.getStorageSync('groupId');
|
|
const mallId = uni.getStorageSync('mallid');
|
|
const mallId = uni.getStorageSync('mallid');
|
|
@@ -99,7 +99,7 @@ function XUser(config) {
|
|
lbsId: store.state?.lbsId || '',
|
|
lbsId: store.state?.lbsId || '',
|
|
// https://kerryprops.atlassian.net/browse/KIP-10831
|
|
// https://kerryprops.atlassian.net/browse/KIP-10831
|
|
sourceId: store.state?.sourceId || '', // 微信:unionId; 支付宝:userId
|
|
sourceId: store.state?.sourceId || '', // 微信:unionId; 支付宝:userId
|
|
- isLogin: store.state?.member?.vipcode ? true : false
|
|
|
|
|
|
+ isLogin: store.state?.member?.vipcode ? 'true' : 'false'
|
|
};
|
|
};
|
|
// params = {"userId": "8aaa809d835ba76d018378bc57180006","sourceType": "WECHAT","phoneNumber": "18521563898","projectId": "paroject1","buildingId": "QHKC-P1","brandId":"8a84853b7c91ac5b017c962dab55030e","cid": "oIUfO5XAVleJ88z13i1_08DCKIhQ","vipCode":"KERRY100200040","lbsId":"8aaa81cb7c836c6b017c83e46b110001"}
|
|
// params = {"userId": "8aaa809d835ba76d018378bc57180006","sourceType": "WECHAT","phoneNumber": "18521563898","projectId": "paroject1","buildingId": "QHKC-P1","brandId":"8a84853b7c91ac5b017c962dab55030e","cid": "oIUfO5XAVleJ88z13i1_08DCKIhQ","vipCode":"KERRY100200040","lbsId":"8aaa81cb7c836c6b017c83e46b110001"}
|
|
if (/orders-and-prepay|calculate-discount|unlicensed-car-check-in|unlicensed-car-checkout|paper-coupon/g.test(config.url)) {
|
|
if (/orders-and-prepay|calculate-discount|unlicensed-car-check-in|unlicensed-car-checkout|paper-coupon/g.test(config.url)) {
|