@@ -59,7 +59,7 @@ func (this *WechatController) Notify() {
<Content><![CDATA[%s]]></Content>
</xml>`
createTime := strconv.FormatInt(time.Now().Unix(), 10)
- WxId := "gh_5dc508325c6f" // 研报公众号原始id
+ WxId := "gh_5dc508325c6f" // 弘则投研公众号原始id
xmlTpl = fmt.Sprintf(xmlTpl, openId, WxId, createTime, contactMsg)
if item.MsgType == "event" {
@@ -143,6 +143,13 @@ func BindUser(unionId, openId, phone, email, areaCode string) (userItem *models.
userRecord.UserId = userId
er = userRecord.Update([]string{"user_id"})
if er != nil {
+ err = errors.New("获取用户关注记录失败")
+ return
+ }
+ userItem.IsSubscribed = true
+ er = userItem.Update([]string{"is_subscribed"})
+ if er != nil {
return
}