|
|
@@ -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
|
|
|
+};
|
|
|
+
|
|
|
+
|