|
@@ -714,8 +714,9 @@ func HandleArticleListByApi(artcleId int) (err error) {
|
|
|
item.Body = ""
|
|
|
item.Result = string(body)
|
|
|
go models.AddCygxShanghaiCompanyLog(item)
|
|
|
-
|
|
|
+ go models.UpdateCygxArticleCeluePush(artcleId)
|
|
|
articleResult := articleResultDate.Data
|
|
|
+
|
|
|
exitMap := make(map[int]int)
|
|
|
classMap := make(map[int]int)
|
|
|
reportMap := make(map[int]int)
|
|
@@ -752,8 +753,8 @@ func HandleArticleListByApi(artcleId int) (err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- //状态等于 2 跟 4 的进行同步
|
|
|
- if exitMap[articleResult.SeriesId] > 0 && (articleResult.PublishStatus == 2 || articleResult.PublishStatus == 4) {
|
|
|
+ //状态等于 2 跟 4 的进行同步 IsActive 为false 软删除的也不同步
|
|
|
+ if exitMap[articleResult.SeriesId] > 0 && (articleResult.PublishStatus == 2 || articleResult.PublishStatus == 4) && articleResult.IsActive {
|
|
|
articleResult.PublishDate = time.Date(articleResult.PublishDate.Year(), articleResult.PublishDate.Month(), articleResult.PublishDate.Day(), articleResult.PublishDate.Hour(), articleResult.PublishDate.Minute(), articleResult.PublishDate.Second(), articleResult.PublishDate.Nanosecond(), time.Local)
|
|
|
item := new(models.Tactics2)
|
|
|
itemArticleData := new(models.CygxArticleData)
|
|
@@ -814,9 +815,7 @@ func HandleArticleListByApi(artcleId int) (err error) {
|
|
|
fmt.Println("UpdateArticlePublish Err:", err.Error())
|
|
|
return err
|
|
|
}
|
|
|
-
|
|
|
go UpdateResourceData(artcleId, "article", "delete", time.Now().Format(utils.FormatDateTime))
|
|
|
- go models.UpdateCygxArticleCeluePush(artcleId)
|
|
|
return err
|
|
|
}
|
|
|
|