zwxi 11 luni în urmă
părinte
comite
e53e6f3850
1 a modificat fișierele cu 6 adăugiri și 1 ștergeri
  1. 6 1
      services/wechat_send_category_template_msg.go

+ 6 - 1
services/wechat_send_category_template_msg.go

@@ -662,6 +662,11 @@ func SendWxCategoryMsgSpecialFollow(specialId int) (err error) {
 		err = errors.New("GetYanxuanSpecialFollowUserById, Err: " + e.Error())
 		return
 	}
+	specialAuthor, e := cygx.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) + ","
@@ -691,7 +696,7 @@ func SendWxCategoryMsgSpecialFollow(specialId int) (err error) {
 		return
 	}
 
-	keyword1 = specialItem.SpecialName
+	keyword1 = specialAuthor.NickName
 	keyword2 = "发布了新报告"
 	keyword3 = specialItem.Title
 	keyword4 = time.Now().Format(utils.FormatDateTimeMinute2)