|
@@ -102,7 +102,14 @@ function XUser(config) {
|
|
if (/orders-and-prepay|calculate-discount|unlicensed-car-check-in|unlicensed-car-checkout/g.test(config.url)) {
|
|
if (/orders-and-prepay|calculate-discount|unlicensed-car-check-in|unlicensed-car-checkout/g.test(config.url)) {
|
|
params.buildingId = window.localStorage.getItem('buildingId');
|
|
params.buildingId = window.localStorage.getItem('buildingId');
|
|
}
|
|
}
|
|
- return JSON.stringify(params);
|
|
|
|
|
|
+ const newParams = {}
|
|
|
|
+ Object.keys(params).forEach(key => {
|
|
|
|
+ const value = params[key]
|
|
|
|
+ if ( value ) {
|
|
|
|
+ newParams[key] = value
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ return JSON.stringify(newParams);
|
|
}
|
|
}
|
|
function getSign(config) {
|
|
function getSign(config) {
|
|
let params = {}
|
|
let params = {}
|