Explorar el Código

unlicensed 参数传递错误

john hace 2 años
padre
commit
7e995dab45
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      src/store/order.js

+ 3 - 2
src/store/order.js

@@ -2,7 +2,7 @@ import { checkOut, calculateDiscount, ordersAndPrepay, currentUnlicensedPlate, u
 
 // import checkOutQHResponse from '@/api/mockData/checkout.qh3.response.json'
 // import checkOutQHResponse from '@/api/mockData/checkout.hz.response.json';
-// import checkOutQHResponse from '@/api/mockData/checkout.qh6.response.json'
+import checkOutQHResponse from '@/api/mockData/checkout.qh6.response.json'
 // import unlicensedCarCheckInResponse from '@/api/mockData/unlicensedCarCheckIn.qh.response.json';
 
 /* 
@@ -190,7 +190,8 @@ const actions = {
       // console.log('无牌车扫码出场', endlessLoop);
       // 场内缴费,调 check-out 接口,
       const method = unlicensed && endlessLoop || !vehicleNo ? unlicensedCarCheckout : checkOut
-      const res = await method(vehicleNo, false, gateId);
+      const res = await method(vehicleNo, unlicensed, gateId);
+      // const res = checkOutQHResponse
       if (res?.parkingRecord?.totalFee <= 0) {
         callback && callback({
           unlicensed,