Parcourir la source

更新首发抢购脚本

shawenguan il y a 2 ans
Parent
commit
f54ea639b2

+ 1 - 1
Scripts/gandart/gandartComposite.js

@@ -908,7 +908,7 @@ async function confirmCompositeV2(taskId, taskInfo, compositeList) {
         try {
             const headers = GCommonGandartHeads;
             headers['Host'] = 'api.gandart.com';
-            headers['Content-Type'] = 'application/json';
+            headers['Content-Type'] = 'application/json;charset=UTF-8';
             let data = {
                 taskId: Number(taskId),
                 compositeList: compositeList,

+ 1 - 1
Scripts/gandart/gandartExchange.js

@@ -907,7 +907,7 @@ async function confirmCompositeV2(taskId, taskInfo, compositeList) {
         try {
             const headers = GCommonGandartHeads;
             headers['Host'] = 'api.gandart.com';
-            headers['Content-Type'] = 'application/json';
+            headers['Content-Type'] = 'application/json;charset=UTF-8;';
             let data = {
                 taskId: Number(taskId),
                 compositeList: compositeList,

Fichier diff supprimé car celui-ci est trop grand
+ 662 - 99
Scripts/gandart/gandartGrab.js


+ 0 - 18
Scripts/gandart/gandartPay.js

@@ -435,24 +435,6 @@ async function confirmPassword(accountPassword) {
     });
 }
 
-function getPayUrlPath(walletName) {
-    let path = `${config.BASE_API}/v2/resaleManage/resale/pay`;
-    switch (walletName) {
-        case 'A':
-            path = `${config.BASE_API}/v2/resaleManage/resale/pay`;
-            break;
-        case 'B':
-            path = `${config.WALLET_API}/v2/wallet/sand/pay`;
-            break;
-        case 'C':
-            path = `${config.WALLET_API}/v2/wallet/kft/pay`;
-            break;
-        default:
-            break;
-    }
-    return path;
-}
-
 async function finalPay(walletName, orderNum, orderTotal, orderInfo) {
     let isSuccess = false;
     let isPass = false;

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff