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);
                 }
             }
         })