maxiaoshan 3 years ago
parent
commit
a12b32691c
2 changed files with 8 additions and 8 deletions
  1. 4 4
      src/front/spider.go
  2. 4 4
      src/util/util.go

+ 4 - 4
src/front/spider.go

@@ -404,10 +404,10 @@ func LuaTextCheck(list, detail string, type_list int) (b bool, msg string) {
 		b = true
 		b = true
 		msg = "代码中含有lua原生方法;"
 		msg = "代码中含有lua原生方法;"
 	}
 	}
-	//if type_list != 0 && !strings.Contains(list, "sendListNum") { //列表页专家模式且不含sendListNum
-	//	b = true
-	//	msg = "代码中缺少sendListNum方法;" + msg
-	//}
+	if type_list != 0 && !strings.Contains(list, "sendListNum") { //列表页专家模式且不含sendListNum
+		b = true
+		msg = "代码中缺少sendListNum方法;" + msg
+	}
 	return
 	return
 }
 }
 
 

+ 4 - 4
src/util/util.go

@@ -151,10 +151,10 @@ func SpiderPassCheckLua(liststr, contentstr string, lua map[string]interface{})
 			msg = append(msg, "检查代码title的完整性")
 			msg = append(msg, "检查代码title的完整性")
 		}
 		}
 	}
 	}
-	//4.检测sendListNum
-	//if !strings.Contains(liststr, "sendListNum") {
-	//	msg = append(msg, "sendListNum方法缺失")
-	//}
+	// 4.检测sendListNum
+	if !strings.Contains(liststr, "sendListNum") {
+		msg = append(msg, "sendListNum方法缺失")
+	}
 	return strings.Join(msg, ",")
 	return strings.Join(msg, ",")
 }
 }