|
@@ -279,6 +279,25 @@ func SendLuaPythonAllNum() {
|
|
|
pythonContent := fmt.Sprintf(NumContentModel, "python", PythonListDownloadAllNum, PythonListDownloadSuccessAllNum, PythonBiddingDownloadAllNum)
|
|
|
resultContent := fmt.Sprintf(MarkdownModel, luaContent+pythonContent)
|
|
|
qu.Debug(resultContent)
|
|
|
+ //保存记录
|
|
|
+ util.MgoS.Save("spider_luapythoncount", map[string]interface{}{
|
|
|
+ "lualistnum": LuaListDownloadAllNum,
|
|
|
+ "lualistsuccessnum": LuaListDownloadSuccessAllNum,
|
|
|
+ "luabiddingnum": LuaBiddingDownloadAllNum,
|
|
|
+ "pythonlistnum": PythonListDownloadAllNum,
|
|
|
+ "pythonlistsuccessnum": PythonListDownloadSuccessAllNum,
|
|
|
+ "pythonbiddingnum": PythonBiddingDownloadAllNum,
|
|
|
+ "comeintime": time.Now().Unix(),
|
|
|
+ "date": Publishtime,
|
|
|
+ })
|
|
|
+ //重置
|
|
|
+ LuaListDownloadAllNum = 0
|
|
|
+ LuaListDownloadSuccessAllNum = 0
|
|
|
+ LuaBiddingDownloadAllNum = 0
|
|
|
+ PythonListDownloadAllNum = 0
|
|
|
+ PythonListDownloadSuccessAllNum = 0
|
|
|
+ PythonBiddingDownloadAllNum = 0
|
|
|
+ //发送统计
|
|
|
resp, err := http.Post(
|
|
|
"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=97850772-88d0-4544-a2c3-6201aeddff9e",
|
|
|
"application/json",
|