shawenguan 1 год назад
Родитель
Сommit
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 scriptName = '叮咚买菜';
 const getCookieRegex = /^https?:\/\/maicai\.api\.ddxq\.mobi\/point\/home\?api_version/;
 const getCookieRegex = /^https?:\/\/maicai\.api\.ddxq\.mobi\/point\/home\?api_version/;
 const dingDongCookieKey = 'dingdongmaicai_checkin_cookie';
 const dingDongCookieKey = 'dingdongmaicai_checkin_cookie';

+ 15 - 7
Scripts/util/MagicJS3.js

@@ -823,13 +823,21 @@ function MagicNotification(scriptName, env, logger, http) {
             try {
             try {
                 let newOpts = {};
                 let newOpts = {};
                 if (typeof _opts === "string") {
                 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") {
                 } else if (typeof _opts === "object") {
                     if (env.isLoon) {
                     if (env.isLoon) {
                         newOpts["openUrl"] = !!_opts["open-url"] ? _opts["open-url"] : "";
                         newOpts["openUrl"] = !!_opts["open-url"] ? _opts["open-url"] : "";

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
Scripts/util/MagicJS3.min.js


Некоторые файлы не были показаны из-за большого количества измененных файлов