소스 검색

修改脚本

shawenguan 1 년 전
부모
커밋
cebcfe5b4e
3개의 변경된 파일32개의 추가작업 그리고 7개의 파일을 삭제
  1. 17 0
      Scripts/dingdong/dingdongHelper.js
  2. 15 7
      Scripts/util/MagicJS3.js
  3. 0 0
      Scripts/util/MagicJS3.min.js

+ 17 - 0
Scripts/dingdong/dingdongHelper.js

@@ -1,3 +1,20 @@
+/******************************
+> 叮咚买菜每日签到 v1.06
+
+ cron: 30 8 * * *
+
+*******************************
+
+[rewrite_local]
+
+^https?:\/\/maicai\.api\.ddxq\.mobi\/point\/home\?api_version url script-request-header https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/script/dingdong/dingdong_checkin.js
+
+[MITM]
+
+hostname=maicai.api.ddxq.mobi
+
+********************************/
+
 const scriptName = '叮咚买菜';
 const getCookieRegex = /^https?:\/\/maicai\.api\.ddxq\.mobi\/point\/home\?api_version/;
 const dingDongCookieKey = 'dingdongmaicai_checkin_cookie';

+ 15 - 7
Scripts/util/MagicJS3.js

@@ -823,13 +823,21 @@ function MagicNotification(scriptName, env, logger, http) {
             try {
                 let newOpts = {};
                 if (typeof _opts === "string") {
-                    if (env.isLoon) newOpts = {
-                        openUrl: _opts
-                    }; else if (env.isQuanX) newOpts = {
-                        "open-url": _opts
-                    }; else if (env.isSurge) newOpts = {
-                        url: _opts
-                    };
+                    if(_opts.length > 0){
+                        if (this.isLoon){
+                            newOpts = {
+                                openUrl: _opts
+                            };
+                        }else if (this.isQuanX){
+                            newOpts = {
+                                "open-url": _opts
+                            };
+                        }else if (this.isSurge){
+                            newOpts = {
+                                url: _opts
+                            };
+                        }
+                    }
                 } else if (typeof _opts === "object") {
                     if (env.isLoon) {
                         newOpts["openUrl"] = !!_opts["open-url"] ? _opts["open-url"] : "";

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
Scripts/util/MagicJS3.min.js


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.