|
@@ -308,7 +308,7 @@ func GetArticleListByApi(cont context.Context) (err error) {
|
|
|
go utils.SendEmail(utils.APPNAME+"【"+utils.RunMode+"】"+"失败提醒", "GetArticleListByApi ErrMsg:"+err.Error(), utils.EmailSendToUsers)
|
|
|
}
|
|
|
}()
|
|
|
- requestUrl := "https://vmp.hzinsights.com/v2api/articles/mp?take=10&skip=0&publish_status=2,4&order=publish_date&sort=DESC"
|
|
|
+ requestUrl := "https://vmp.hzinsights.com/v2api/articles/mp?take=100&skip=0&publish_status=2,4&order=publish_date&sort=DESC"
|
|
|
method := "GET"
|
|
|
client := &nhttp.Client{}
|
|
|
req, err := nhttp.NewRequest(method, requestUrl, nil)
|
|
@@ -666,7 +666,6 @@ func GetArticleListByApi(cont context.Context) (err error) {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
//类型ID 医药(医享会:28 、药调研:301)、消费【渠道新声:32】、科技【科技前言:79】、智造【匠心智造:84】或者是纪要做消息模板推送
|
|
|
fmt.Println(v.CategoryId)
|
|
|
if v.IsSummary == 1 || (v.CategoryId == 28 || v.CategoryId == 301 || v.CategoryId == 32 || v.CategoryId == 79 || v.CategoryId == 84) {
|
|
@@ -714,6 +713,10 @@ func GetArticleListByApi(cont context.Context) (err error) {
|
|
|
}
|
|
|
}
|
|
|
appointmentActivityName = strings.TrimRight(appointmentActivityName, ",")
|
|
|
+ if vApp.ActivityTypeId == 5 && v.CategoryId != 301 {
|
|
|
+ continue
|
|
|
+ }
|
|
|
+
|
|
|
if vApp.Mobile != "" {
|
|
|
openIdListByAppointment, err := models.GetUserRecordListByMobile(4, vApp.Mobile)
|
|
|
if err != nil {
|