Browse Source

Merge pull request #566 from John-Hong/release-3.15.0

feat(KIP-17684):  纸质优惠券金额接口 补充 unlicensed 字段
John-Hong 11 months ago
parent
commit
ab4f113f59
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/api/parking/index.js

+ 2 - 1
src/api/parking/index.js

@@ -176,7 +176,8 @@ export function qrCodes(codeId) {
 
 // 1.3 纸质优惠券金额接口
 export function paperCoupon(couponCode, vehicleNo) {
-  return window.requestms.get(`parking-lots/paper-coupon?couponCode=${couponCode}&vehicleNo=${vehicleNo}`, { loading: true });
+  const unlicensed = `${vehicleNo}`.indexOf('临') > -1 || !vehicleNo
+  return window.requestms.get(`parking-lots/paper-coupon?couponCode=${couponCode}&vehicleNo=${vehicleNo}&unlicensed=${unlicensed}`, { loading: true });
 }