shawenguan 2 rokov pred
rodič
commit
7fa30c78fc
2 zmenil súbory, kde vykonal 108 pridanie a 3 odobranie
  1. 102 0
      BoxJsSub/Release.json
  2. 6 3
      Scripts/gandart/gandartGrab.js

+ 102 - 0
BoxJsSub/Release.json

@@ -779,6 +779,108 @@
           "desc": "未支付订单列表"
         }
       ]
+    },
+    {
+      "id": "lkGandartGrabber",
+      "name": "光予抢购",
+      "author": "@jojo",
+      "repo": "https://git.jojo21.cf/shawenguan/Quantumult-X/raw/master/Scripts/gandart/gandartGrab.js",
+      "script": "https://git.jojo21.cf/shawenguan/Quantumult-X/raw/master/Scripts/gandart/gandartGrab.js",
+      "icons": [
+        "https://git.jojo21.cf/shawenguan/Quantumult-X/raw/master/Images/gandart.png",
+        "https://git.jojo21.cf/shawenguan/Quantumult-X/raw/master/Images/gandart.png"
+      ],
+      "keys": [
+        "lkGandartToken",
+        "lkGandartNewCollectionCastingId",
+        "lkGandartNewCollectionCastingSearchKey"
+      ],
+      "settings": [
+        {
+          "id": "lkIsEnableLogGandartGrabberCheckIn",
+          "name": "开启/关闭日志",
+          "val": true,
+          "type": "boolean",
+          "desc": "默认开启"
+        },
+        {
+          "id": "lkNotifyOnlyFailGandartGrabberCheckIn",
+          "name": "只当执行失败才通知",
+          "val": false,
+          "type": "boolean",
+          "desc": "默认关闭"
+        },
+        {
+          "id": "lkIsEnableTgNotifyGandartGrabberCheckIn",
+          "name": "开启/关闭通知",
+          "val": false,
+          "type": "boolean",
+          "desc": "默认关闭"
+        },
+        {
+          "id": "lkTgNotifyUrlGandartGrabberCheckIn",
+          "name": "通知地址",
+          "val": "",
+          "type": "text",
+          "desc": "Tg的通知地址,如:https://api.telegram.org/bot-token/sendMessage?chat_id=-100140&parse_mode=Markdown&text="
+        },
+        {
+          "id": "lkGandartIsNewCastingMaxNumLimit",
+          "name": "开启/关闭检查未支付单数限制",
+          "val": false,
+          "type": "boolean",
+          "desc": "默认关闭锁定"
+        },
+        {
+          "id": "lkGandartNewCastingLockMaxNum",
+          "name": "最大允许未支付单数",
+          "val": 6,
+          "type": "number",
+          "desc": "最大允许未支付单数"
+        },
+        {
+          "id": "lkGandartNewCastingPayWalletList",
+          "name": "付款钱包",
+          "val": "C",
+          "type": "checkboxes",
+          "desc": "付款钱包,用于付款选择",
+          "items": [
+            {
+              "key": "A",
+              "label": "钱包A"
+            },
+            {
+              "key": "B",
+              "label": "钱包B"
+            },
+            {
+              "key": "C",
+              "label": "钱包C"
+            }
+          ]
+        },
+        {
+          "id": "lkGandartNewCollectionCastingId",
+          "name": "首发藏品铸造ID",
+          "val": "",
+          "type": "text",
+          "desc": "首发藏品铸造ID"
+        },
+        {
+          "id": "lkGandartNewCollectionCastingSearchKey",
+          "name": "首发藏品名称关键字",
+          "val": "",
+          "type": "text",
+          "desc": "首发藏品名称关键字"
+        },
+        {
+          "id": "lkGandartPasswordPlainText",
+          "name": "钱包支付密码",
+          "val": "",
+          "type": "text",
+          "desc": "钱包支付密码"
+        }
+      ]
     }
   ]
 }

+ 6 - 3
Scripts/gandart/gandartGrab.js

@@ -40,6 +40,9 @@ const GandartConstKey = {
     PasswordPlainText: 'lkGandartPasswordPlainText',
     PrivPayWalletList: 'lkGandartPrivPayWalletList',
     // -----抢首发相关的-----
+    IsNewCastingMaxNumLimit: 'lkGandartIsNewCastingMaxNumLimit',
+    NewCastingLockMaxNum: 'lkGandartNewCastingLockMaxNum',
+
     NewCastingPayWalletList: 'lkGandartNewCastingPayWalletList',
     NewCastingId: 'lkGandartNewCollectionCastingId',
     NewCastingSearchKey: 'lkGandartNewCollectionCastingSearchKey',
@@ -104,13 +107,13 @@ function getCollectionNameById(castingId) {
 }
 
 function isCollectionMaxNumLimitEnable() {
-    let isEnabled = lk.getVal(GandartConstKey.IsCollectionMaxNumLimit);
+    let isEnabled = lk.getVal(GandartConstKey.IsNewCastingMaxNumLimit);
     isEnabled = lk.isEmpty(isEnabled) ? false : JSON.parse(isEnabled);
     return isEnabled;
 }
 
 function getCollectionLockMaxNum() {
-    let num = lk.getVal(GandartConstKey.CollectionLockMaxNum, 6);
+    let num = lk.getVal(GandartConstKey.NewCastingLockMaxNum, 6);
     return Number(num);
 }
 
@@ -125,7 +128,7 @@ function getMyPasswordPlainText() {
 
 function getMyPayWalletList() {
     let str = lk.getVal(GandartConstKey.NewCastingPayWalletList);
-    let ret = 'A,C';
+    let ret = 'C';
     if (!lk.isEmpty(str)) {
         ret = str;
     }