xuzhiheng 4 년 전
부모
커밋
e5813dd2d9
2개의 변경된 파일10개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 2
      src/web/templates/private/cuser_rule_create.html
  2. 5 2
      src/web/templates/private/cuser_rule_edit.html

+ 5 - 2
src/web/templates/private/cuser_rule_create.html

@@ -1890,18 +1890,21 @@
                     showTip("匹配成功,匹配词 " + r.matchKey, 6000);
                 } else {
                     var str = "";
-                    if (r.info != ""){
+                    if (r.info != "" && r.info != null && r.info != undefined){
                         str = r.info
                         showTip(str, 6000);
                         return
                     }
                     if (r.allexcluedKey != "") {
                         str = "匹配失败,被全局排除词 "+ r.allexcluedKey + " 排除";
+                        showTip(str, 6000);
+                        return 
                     }
                     if (r.excluedKey != "") {
                         str = "匹配失败,被排除词 "+ r.excluedKey + " 排除";
+                        showTip(str, 6000);
+                        return
                     }
-                    showTip(str, 6000);
                 }
             }
         })

+ 5 - 2
src/web/templates/private/cuser_rule_edit.html

@@ -1953,18 +1953,21 @@
                     showTip("匹配成功,匹配词 " + r.matchKey, 6000);
                 } else {
                     var str = "";
-                    if (r.info != ""){
+                    if (r.info != "" && r.info != null && r.info != undefined){
                         str = r.info
                         showTip(str, 6000);
                         return
                     }
                     if (r.allexcluedKey != "") {
                         str = "匹配失败,被全局排除词 "+ r.allexcluedKey + " 排除";
+                        showTip(str, 6000);
+                        return 
                     }
                     if (r.excluedKey != "") {
                         str = "匹配失败,被排除词 "+ r.excluedKey + " 排除";
+                        showTip(str, 6000);
+                        return
                     }
-                    showTip(str, 6000);
                 }
             }
         })