shawenguan hai 1 ano
pai
achega
06b23cd2fd

+ 4 - 4
Scripts/cmobile/cmobileExchange.js → Scripts/cmobile/caiyunExchange.js

@@ -1,4 +1,4 @@
-const lk = new ToolKit(`移动云盘兑换`, `cmobileExchange`);
+const lk = new ToolKit(`移动云盘兑换`, `caiyunExchange`);
 
 let headers = {
     'Sec-Fetch-Dest' : `empty`,
@@ -32,9 +32,9 @@ async function doExchange(prizeId){
     return new Promise((resolve, _reject) => {
         try {
             const url = `https://caiyun.feixin.10086.cn:7071/market/fissonactivity/red/exchange`;
-            const authorization = lk.getVal('lkCmobileJwtAuthorization');
-            const jwtToken = lk.getVal('lkCmobileJwtToken');
-            const cookie = lk.setVal('lkCmobileCookie');
+            const authorization = lk.getVal('lkCmobileCaiyunJwtAuthorization');
+            const jwtToken = lk.getVal('lkCmobileCaiyunJwtToken');
+            const cookie = lk.setVal('lkCmobileCaiyunCookie');
             if(!jwtToken || !cookie){
                 lk.log('缺少token');
                 resolve();

+ 11 - 11
Scripts/cmobile/cmobileHelper.js → Scripts/cmobile/caiyunHelper.js

@@ -9,7 +9,7 @@
 hostname = caiyun.feixin.10086.cn
 */
 
-const lk = new ToolKit(`移动助手`, `CmobileHelper`);
+const lk = new ToolKit(`移动云盘助手`, `CaiyunHelper`);
 
 if (!lk.isExecComm) {
     if (lk.isRequest()) {
@@ -39,13 +39,13 @@ function checkHandleRequest() {
 
 function handleSpecToken() {
     let headers = $request.headers;
-    lk.log('成功获取移动用户token信息');
-    lk.setVal('lkCmobileJwtAuthorization', headers.Authorization);
+    lk.log('成功获取移动云盘用户token信息');
+    lk.setVal('lkCmobileCaiyunJwtAuthorization', headers.Authorization);
     let xmlStr = lk.getResponseBody();
     let xmldoc = createXmldoc();
     let root = new xmldoc.XmlDocument(xmlStr);
     if(root.valueWithPath("return") == 0){
-        lk.setVal('lkCmobileJwtToken', root.valueWithPath("token"));
+        lk.setVal('lkCmobileCaiyunJwtToken', root.valueWithPath("token"));
     }
 }
 
@@ -56,20 +56,20 @@ function handleUserInfo() {
         if (!data) {
             return;
         }
-        lk.log(`获取用户信息`);
+        lk.log(`获取移动云盘用户信息`);
         data = JSON.parse(data);
         if (data.code == 0) {
-            lk.setVal('lkCmobileJwtToken', headers.jwtToken);
-            lk.setVal('lkCmobileCookie', headers.Cookie);
-            lk.log('成功获取移动用户信息');
-            lk.appendNotifyInfo('🎉成功获取移动用户信息');
+            lk.setVal('lkCmobileCaiyunJwtToken', headers.jwtToken);
+            lk.setVal('lkCmobileCaiyunCookie', headers.Cookie);
+            lk.log('成功获取移动云盘用户信息');
+            lk.appendNotifyInfo('🎉成功获取移动云盘用户信息');
         } else {
             lk.execFail();
-            lk.appendNotifyInfo('❌获取移动用户信息失败,请稍后再试');
+            lk.appendNotifyInfo('❌获取移动云盘用户信息失败,请稍后再试');
         }
     } catch (e) {
         lk.execFail();
-        lk.appendNotifyInfo('❌获取移动用户信息失败');
+        lk.appendNotifyInfo('❌获取移动云盘用户信息失败');
     }
     // lk.msg('');
 }

+ 1 - 1
Scripts/cmobile/cmobileSignIn.js → Scripts/cmobile/caiyunSignIn.js

@@ -1,4 +1,4 @@
-const lk = new ToolKit(`移动云盘签到`, `cmobileSignIn`);
+const lk = new ToolKit(`移动云盘签到`, `caiyunSignIn`);
 
 let headers = {
     'x-yun-user-agent' : `iPhone|iPhone|ios 16.6.1|mCloud10.4.0-200`,