|
@@ -294,7 +294,7 @@ func GetArticleListByApi(cont context.Context) (err error) {
|
|
|
go utils.SendEmail(utils.APPNAME+"【"+utils.RunMode+"】"+"失败提醒", "GetArticleListByApi ErrMsg:"+err.Error(), utils.EmailSendToUsers)
|
|
|
}
|
|
|
}()
|
|
|
- url := "https://vmp.hzinsights.com/v2api/articles/mp?take=100&skip=0&publish_status=1"
|
|
|
+ url := "https://vmp.hzinsights.com/v2api/articles/mp?take=100&skip=0&publish_status=2"
|
|
|
method := "GET"
|
|
|
client := &nhttp.Client{}
|
|
|
req, err := nhttp.NewRequest(method, url, nil)
|
|
@@ -368,7 +368,7 @@ func GetArticleListByApi(cont context.Context) (err error) {
|
|
|
}
|
|
|
item.CreateDate = v.CreateDate
|
|
|
item.PublishDate = v.PublishDate
|
|
|
- item.PublishStatus = v.PublishStatus
|
|
|
+ item.PublishStatus = 1
|
|
|
item.Body = v.Content.Body
|
|
|
item.Abstract = v.Content.Abstract
|
|
|
item.CategoryName = v.Industry.Name
|
|
@@ -507,7 +507,7 @@ func GetArticleListByApi(cont context.Context) (err error) {
|
|
|
updateParams["SubCategoryName"] = v.SubCategoryName
|
|
|
}
|
|
|
//updateParams["CategoryId"] = v.CategoryId
|
|
|
- updateParams["PublishStatus"] = v.PublishStatus
|
|
|
+ updateParams["PublishStatus"] = 1
|
|
|
updateParams["ExpertBackground"] = expertContentStr
|
|
|
updateParams["ExpertNumber"] = expertNumStr
|
|
|
updateParams["InterviewDate"] = interviewDateStr
|
|
@@ -538,7 +538,7 @@ func GetArticleListByApi(cont context.Context) (err error) {
|
|
|
item.CategoryName = v.CategoryName
|
|
|
item.SubCategoryName = v.SubCategoryName
|
|
|
item.CategoryId = v.CategoryId
|
|
|
- item.PublishStatus = v.PublishStatus
|
|
|
+ item.PublishStatus = 1
|
|
|
item.ExpertBackground = expertContentStr
|
|
|
item.ExpertNumber = expertNumStr
|
|
|
item.InterviewDate = interviewDateStr
|