|
@@ -196,6 +196,20 @@ export const createAxiosByinterceptors = (config) => {
|
|
|
'Parking-User': XUser(config),
|
|
|
'withCredentials': 'false'
|
|
|
};
|
|
|
+ // 检测无牌车出场参数, 必须为必填参数
|
|
|
+ if(/unlicensed-car-checkout/g.test(config.url)) {
|
|
|
+ const data = JSON.parse(config.data)
|
|
|
+ if(!data.vehicleNo && !data.gateId || !config.data) {
|
|
|
+ throw {
|
|
|
+ response: {
|
|
|
+ data: {
|
|
|
+ message: '当前参数异常,请重新登录',
|
|
|
+ code: 'BAD_USER_INFO_2'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ };
|
|
|
+ }
|
|
|
+ }
|
|
|
return config;
|
|
|
},
|
|
|
function (error) {
|