shawenguan 2 سال پیش
والد
کامیت
728bbaa36b
2فایلهای تغییر یافته به همراه27 افزوده شده و 1 حذف شده
  1. 1 1
      Scripts/jhsh/jhsh.rewrite.quanx.conf
  2. 26 0
      Scripts/jhsh/jhshHelper.js

+ 1 - 1
Scripts/jhsh/jhsh.rewrite.quanx.conf

@@ -1,3 +1,3 @@
 hostname = yunbusiness.ccb.com
 
-^https:\/\/yunbusiness\.ccb\.com\/(clp_coupon|clp_service)\/txCtrl\?txcode=(A3341A038|autoLogin) url script-request-body https://git.jojo21.cf/shawenguan/Quantumult-X/raw/master/Scripts/jhsh/jhsh_checkIn.js
+^https:\/\/yunbusiness\.ccb\.com\/(clp_coupon|clp_service)\/txCtrl\?txcode=(A3341A038|autoLogin) url script-request-body https://git.jojo21.cf/shawenguan/Quantumult-X/raw/master/Scripts/jhsh/jhshHelper.js

+ 26 - 0
Scripts/jhsh/jhshHelper.js

@@ -0,0 +1,26 @@
+const lk = new ToolKit(`建行生活助手`, `JhshHelper`);
+const jhshStoreKeyPrefix = `lkJhsh`;
+
+
+let jhshAppId = '1472477795';
+
+if (!lk.isExecComm) {
+    if (lk.isRequest()) {
+        checkHandleRequest();
+        lk.done();
+    }else{
+
+    }
+}
+
+
+function checkHandleRequest() {
+    const url = $request.url;
+    const path = $request.path;
+    lk.log(`请求url=${url}#${$request.method}`);
+    lk.log($request.headers);
+    lk.log(`请求body=${lk.getRequestBody()}`);
+    if ($request && $request.method != 'OPTIONS') {
+
+    }
+}