|
@@ -127,7 +127,7 @@ func SendWxCategoryMsgSpecialAuthor(specialId, status int) (err error) {
|
|
|
func SendWxCategoryMsgSpecialFollow(specialId int) (err error) {
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
|
- go utils.SendAlarmMsg(fmt.Sprint("研选专栏审核完成时,给提交人发送类目模板消息 specialId:", specialId, err.Error()), 2)
|
|
|
+ go utils.SendAlarmMsg(fmt.Sprint("研选专栏有新内容审核通过时,给关注此专栏的客户发送类目模板消息失败", specialId, ", specialId", err.Error()), 2)
|
|
|
}
|
|
|
}()
|
|
|
var keyword1 string
|
|
@@ -148,11 +148,6 @@ func SendWxCategoryMsgSpecialFollow(specialId int) (err error) {
|
|
|
err = errors.New("GetYanxuanSpecialFollowUserById, Err: " + e.Error())
|
|
|
return
|
|
|
}
|
|
|
- specialAuthor, e := models.GetCygxYanxuanSpecialAuthorByUserId(specialItem.UserId)
|
|
|
- if e != nil {
|
|
|
- err = errors.New("GetCygxYanxuanSpecialAuthorByUserId, Err: " + e.Error())
|
|
|
- return
|
|
|
- }
|
|
|
var allInUserId string
|
|
|
for _, v := range followers {
|
|
|
allInUserId += strconv.Itoa(v) + ","
|
|
@@ -182,7 +177,7 @@ func SendWxCategoryMsgSpecialFollow(specialId int) (err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- keyword1 = specialAuthor.NickName
|
|
|
+ keyword1 = specialItem.SpecialName
|
|
|
keyword2 = "发布了新报告"
|
|
|
keyword3 = specialItem.Title
|
|
|
keyword4 = time.Now().Format(utils.FormatDateTimeMinute2)
|