shawenguan 2 år sedan
förälder
incheckning
5ed7e9c758
3 ändrade filer med 5 tillägg och 5 borttagningar
  1. 0 0
      Scripts/gandart/gandartHelper.js
  2. 5 5
      Scripts/util/ToolKit.js
  3. 0 0
      Scripts/util/ToolKit.min.js

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
Scripts/gandart/gandartHelper.js


+ 5 - 5
Scripts/util/ToolKit.js

@@ -83,7 +83,7 @@ function ToolKit(scriptName, scriptId, options) {
         initCache() {
             const pKey = this.getPersistKey();
             if (this.isQuanX()) this.cache = JSON.parse($prefs.valueForKey(pKey) || "{}");
-            if (this.isLoon() || isSurge)
+            if (this.isLoon() || this.isSurge())
                 this.cache = JSON.parse($persistentStore.read(pKey) || "{}");
 
             if (this.isNode()) {
@@ -539,7 +539,7 @@ function ToolKit(scriptName, scriptId, options) {
             if (this.isEnableLog) {
                 console.log(`${this.logSeparator}${this.name}执行异常:`)
                 console.log(message)
-                console.log(`\n${message.message}`)
+                console.log('\n'+`${message.message}`)
             }
         }
 
@@ -565,7 +565,7 @@ function ToolKit(scriptName, scriptId, options) {
                             message = message.replace(key, this.tgEscapeCharMapping[key])
                         }
                         this.get({
-                            url: encodeURI(`${this.tgNotifyUrl}📌${this.name}\n${message}`)
+                            url: encodeURI(`${this.tgNotifyUrl}📌${this.name}`+'\n'+`${message}`)
                         }, (_error, _statusCode, _body) => {
                             this.log(`Tg通知完毕`)
                         })
@@ -847,7 +847,7 @@ function ToolKit(scriptName, scriptId, options) {
          * @returns {*}
          */
         autoComplete(str, prefix, suffix, fill, len, direction, ifCode, clen, startIndex, cstr) {
-            str += ``
+            str += ''
             if (str.length < len) {
                 while (str.length < len) {
                     if (direction == 0) {
@@ -858,7 +858,7 @@ function ToolKit(scriptName, scriptId, options) {
                 }
             }
             if (ifCode) {
-                let temp = ``
+                let temp = ''
                 for (var i = 0; i < clen; i++) {
                     temp += cstr
                 }

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 0 - 0
Scripts/util/ToolKit.min.js


Vissa filer visades inte eftersom för många filer har ändrats