Просмотр исходного кода

Merge pull request #468 from tron/revert-467-John/release-3.3.0/SCRM-5802

Revert "fix(SCRM-5810): 补充 current-unlicensed-plate 接口的buildingid"
John-Hong 1 год назад
Родитель
Сommit
9083c532f0

+ 1 - 1
src/api/request.js

@@ -145,7 +145,7 @@ function XUser(config) {
   }
   
   // params = {"userId": "8aaa809d835ba76d018378bc57180006","sourceType": "WECHAT","phoneNumber": "18521563898","projectId": "paroject1","buildingId": "QHKC-P1","brandId":"8a84853b7c91ac5b017c962dab55030e","cid": "oIUfO5XAVleJ88z13i1_08DCKIhQ","vipCode":"KERRY100200040","lbsId":"8aaa81cb7c836c6b017c83e46b110001"}
-  if (/calculate-discount|unlicensed-car-check-in|unlicensed-car-checkout|\/parking\/current-unlicensed-plate/g.test(config.url)) {
+  if (/calculate-discount|unlicensed-car-check-in|unlicensed-car-checkout|paper-coupon|current-unlicensed-plate/g.test(config.url)) {
     params.buildingId = window.localStorage.getItem('buildingId');
   }
   params = Object.assign(params, config['Parking-User'])

+ 0 - 1
src/pages/parkingFee/mixins/parkingFee.js

@@ -314,7 +314,6 @@ export default {
         if (carList) {
           this.carList = JSON.parse(carList);
         }
-        window.localStorage.setItem('buildingId', res.buildingId);
       } catch (e) {
         console.log(225225, e);
       }

+ 0 - 1
src/pages/parkingFeeV2/mixins/parkingFee.js

@@ -230,7 +230,6 @@ export default {
         if (carList) {
           this.carList = JSON.parse(carList);
         }
-        window.localStorage.setItem('buildingId', res.buildingId);
       } catch (e) {
         console.log(225225, e);
       }