Sfoglia il codice sorgente

feat:增加配置项

wangchuanjin 1 anno fa
parent
commit
1d021c6d9f

+ 5 - 2
activeStartTip/config.json

@@ -15,11 +15,14 @@
   },
   "etcd": {
     "hosts": [
-      "192.168.3.206:2379"
+      "192.168.3.207:2379",
+      "192.168.3.165:2379",
+      "192.168.3.204:2379"
     ],
     "messageKey": "message.rpc"
   },
   "webdomain": "https://jybx2-webtest.jydev.jianyu360.com",
   "sendMsgPool":5,
-  "testIds":["5d6378301c298a5aac7b5402"]
+  "testIds":["5d6378301c298a5aac7b5402"],
+  "endTime":1699264800
 }

+ 1 - 0
activeStartTip/config/config.go

@@ -34,6 +34,7 @@ type config struct {
 	Webdomain   string
 	SendMsgPool int
 	TestIds     []string
+	EndTime     int64
 }
 
 type mongo struct {

+ 3 - 0
activeStartTip/main.go

@@ -27,6 +27,9 @@ func main() {
 		}
 	} else {
 		query["i_appid"] = 2
+		query["l_registedate"] = map[string]interface{}{
+			"$lt": Config.EndTime,
+		}
 	}
 	log.Println("start...", query)
 	it := sess.DB("qfw").C("user").Find(query).Select(map[string]interface{}{

+ 1 - 1
resourceBrushLibrary/task.json

@@ -1 +1 @@
-{"lastTime":1698991920}
+{"lastTime":0}