shawenguan 2 년 전
부모
커밋
ae188ec1ea
2개의 변경된 파일54개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      BoxJsSub/JoJo_BoxJs.json
  2. 52 0
      Scripts/gandart/gandartExchange.js

+ 2 - 2
BoxJsSub/JoJo_BoxJs.json

@@ -22,11 +22,11 @@
           "script": "https://git.jojo21.cf/shawenguan/Quantumult-X/raw/master/Scripts/gandart/gandartOrder.js"
         },
         {
-          "name": "极速合成",
+          "name": "极速合成(或置换)",
           "script": "https://git.jojo21.cf/shawenguan/Quantumult-X/raw/master/Scripts/gandart/gandartComposite.js"
         },
         {
-          "name": "极速置换",
+          "name": "极速兑换(琳琅阁)",
           "script": "https://git.jojo21.cf/shawenguan/Quantumult-X/raw/master/Scripts/gandart/gandartExchange.js"
         }
       ],

+ 52 - 0
Scripts/gandart/gandartExchange.js

@@ -0,0 +1,52 @@
+const config = {
+    "PATH_IMG_V2_PRO": "https://cdn-image.gandart.com/",
+    "RUN_TYPE": 1,
+    "BOTTOM_LOAD_MORE_THROTTLE": 100,
+    "BASE_API": "https://api.gandart.com/base",
+    "RESALE_API": "https://api.gandart.com/market",
+    "RESALE_API_V2": "https://api2.gandart.com/market/api/v2",
+    "RESALE_API_V3": "https://api2.gandart.com/market/api/v3",
+    "SALE_API": "https://api.gandart.com/read/api",
+    "ORDER_API": "https://api.gandart.com",
+    "WALLET_API": "https://api.gandart.com/api",
+    "HXT_API": "https://api.gandart.com/wallet",
+    "PATH_IMG_V2": "https://cdn-image.gandart.com/",
+    "SAND_RECHARGE_ACTION": "https://cap.sandpay.com.cn/v4/front-electrans/ceas.elec.trans.quick.deposit.apply",
+    "GAME_ElF_API": "https://elf.pentajam.cn/api",
+    "GAME_ELF_URL": "https://elf.pentajam.cn",
+    "CORECENTER_URL": "https://api.gandart.com/corecenter"
+};
+
+const lk = new ToolKit(`光予兑换`, `GandartHelper`, `gandartHelper.js`);
+
+const GandartConstKey = {
+    // -----通用助手相关的-----
+    Token: 'lkGandartToken',
+    UserData: 'lkGandartUserData',
+    PrivCollectionBrief: 'lkGandartPrivCollectionBrief',
+    PrivCollectionDetail: 'lkGandartPrivCollectionDetail',
+    CollectionName: 'lkGandartCollectionName',
+    CastingId: 'lkGandartCastingId',
+    LimitPrice: 'lkGandartLimitPrice',
+    TransactionRecordId: 'lkGandartTransactionRecordId',
+    CollectionCateLst: 'lkGandartCollectionCateLst',
+    FloatPriceIntaval: 'lkGandartFloatPriceIntaval',
+    IsCollectionWatchLocked: 'lkIsGandartCollectionWatchLocked',
+};
+
+let gandartToken = lk.getVal(GandartConstKey.Token, '');
+
+const GCommonGandartHeads = {
+    'Accept': `application/json, text/plain, */*`,
+    'Origin': `https://www.gandart.com`,
+    'Accept-Encoding': `gzip, deflate, br`,
+    'Content-Type': `application/x-www-form-urlencoded;charset=UTF-8`,
+    'Connection': `keep-alive`,
+    'Host': `api2.gandart.com`,
+    'User-Agent': `Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Mobile/15E148 Safari/604.1`,
+    'Referer': `https://www.gandart.com/`,
+    'Accept-Language': `zh-CN,zh-Hans;q=0.9`,
+    'token': gandartToken
+};
+
+