maxiaoshan 3 年之前
父節點
當前提交
e0b6d7678d
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      src/task.go

+ 5 - 4
src/task.go

@@ -80,9 +80,10 @@ func CloseTask() {
 		"l_complete": map[string]interface{}{
 			"$lt": unix_time + 86400,
 		},
-		"s_type": map[string]interface{}{
-			"$ne": "7",
-		},
+		"s_type": "1",
+		// "s_type": map[string]interface{}{
+		// 	"$ne": "7",
+		// },
 	}
 	logger.Debug("query:", query)
 	set := map[string]interface{}{
@@ -753,7 +754,7 @@ func SaveResult() {
 	wg.Wait()
 	lock.Lock()
 	if len(savearr) > 0 {
-		MgoE.SaveBulk("luataskinfo_test", savearr...)
+		MgoE.SaveBulk("luataskinfo", savearr...)
 		savearr = []map[string]interface{}{}
 	}
 	lock.Unlock()