shawenguan 2 سال پیش
والد
کامیت
079bf95f06
2فایلهای تغییر یافته به همراه17 افزوده شده و 2 حذف شده
  1. 2 2
      BoxJsSub/JoJo_BoxJs.json
  2. 15 0
      Scripts/gandart/gandartHelper.js

+ 2 - 2
BoxJsSub/JoJo_BoxJs.json

@@ -129,10 +129,10 @@
         },
         {
           "id": "lkIsGandartCollectionWatchLocked",
-          "name": "是否锁定监控当前产品",
+          "name": "开启/关闭锁定监控产品",
           "val": false,
           "type": "boolean",
-          "desc": "默认锁定"
+          "desc": "默认关闭锁定"
         },
         {
           "id": "lkGandartCastingId",

+ 15 - 0
Scripts/gandart/gandartHelper.js

@@ -27,6 +27,7 @@ const GandartConstKey = {
     TransactionRecordId: 'lkGandartTransactionRecordId',
     CollectionCateLst: 'lkGandartCollectionCateLst',
     FloatPriceIntaval: 'lkGandartFloatPriceIntaval',
+    IsCollectionWatchLocked: 'lkIsGandartCollectionWatchLocked',
 };
 
 let gandartToken = lk.getVal(GandartConstKey.Token, '');
@@ -195,7 +196,21 @@ function checkFixLimitPrice(castingId, info, lastCastingId) {
     }
 }
 
+
+function isExistCollectionLocked() {
+    let curCastingId = lk.getVal(GandartConstKey.CastingId);
+    if (!lk.isEmpty(curCastingId)) {
+        let isLocked = lk.getVal(GandartConstKey.IsCollectionWatchLocked);
+        isLocked = lk.isEmpty(isLocked) ? true : JSON.parse(isLocked);
+        return isLocked;
+    }
+    return false;
+}
+
 function handleCollectionDetailsByCastingId() {
+    if (isExistCollectionLocked()) {
+        return;
+    }
     try {
         let data = lk.getResponseBody();
         if (!data) {