xingzai hai 1 ano
pai
achega
6e5c4907c6
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  1. 6 6
      services/article.go

+ 6 - 6
services/article.go

@@ -739,12 +739,12 @@ func HandleArticleListByApi(artcleId int) (err error) {
 		fmt.Println("Getres.PublicGetDate Err:", err.Error())
 		return err
 	}
-	//item := new(models.CygxShanghaiCompanyLog)
-	//item.CreateTime = time.Now()
-	//item.Url = clueApiUrl
-	//item.Body = ""
-	//item.Result = string(body)
-	//go models.AddCygxShanghaiCompanyLog(item)
+	item := new(models.CygxShanghaiCompanyLog)
+	item.CreateTime = time.Now()
+	item.Url = clueApiUrl
+	item.Body = ""
+	item.Result = string(body)
+	go models.AddCygxShanghaiCompanyLog(item)
 	go models.UpdateCygxArticleCeluePush(artcleId)
 	articleResult := articleResultDate.Data