浏览代码

sendListNum检测暂时关闭

maxiaoshan 3 年之前
父节点
当前提交
55e2009ce6
共有 3 个文件被更改,包括 9 次插入9 次删除
  1. 2 2
      src/front/front.go
  2. 4 4
      src/front/spider.go
  3. 3 3
      src/util/util.go

+ 2 - 2
src/front/front.go

@@ -554,8 +554,8 @@ func (f *Front) Importfile() {
 							o["urgency"] = 0
 						}
 						o["platform"] = cells[9].Value
-						weigh, _ := cells[10].Int()
-						estimate, _ := cells[11].Int()
+						estimate, _ := cells[10].Int()
+						weigh, _ := cells[11].Int()
 						o["estimate"] = estimate
 						o["weight"] = weigh
 						//存储表

+ 4 - 4
src/front/spider.go

@@ -404,10 +404,10 @@ func LuaTextCheck(list, detail string, type_list int) (b bool, msg string) {
 		b = true
 		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
 }
 

+ 3 - 3
src/util/util.go

@@ -152,9 +152,9 @@ func SpiderPassCheckLua(liststr, contentstr string, lua map[string]interface{})
 		}
 	}
 	//4.检测sendListNum
-	if !strings.Contains(liststr, "sendListNum") {
-		msg = append(msg, "sendListNum方法缺失")
-	}
+	//if !strings.Contains(liststr, "sendListNum") {
+	//	msg = append(msg, "sendListNum方法缺失")
+	//}
 	return strings.Join(msg, ",")
 }