|
@@ -85,14 +85,18 @@ func (this *YanxuanSpecialMessageController) MessageAdd() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ var msgText string
|
|
|
if parentId == 0 {
|
|
|
+ msgText = "留言成功"
|
|
|
go services.SendWxCategoryMsgByYanxuanSpecialMassageByAuthor(content, yanxuanSpecialBySpeciaDetail)
|
|
|
} else {
|
|
|
+ msgText = "回复成功"
|
|
|
go services.SendWxCategoryMsgByYanxuanSpecialMassage(parentId, int(messageId), content, yanxuanSpecialBySpeciaDetail)
|
|
|
}
|
|
|
+
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
|
- br.Msg = "留言成功"
|
|
|
+ br.Msg = msgText
|
|
|
}
|
|
|
|
|
|
// @Title 留言管理列表
|
|
@@ -223,6 +227,9 @@ func (this *YanxuanSpecialMessageController) MessageManageList() {
|
|
|
item.SourceTitle = v.SourceTitle
|
|
|
item.CreateTime = v.CreateTime.Format(utils.FormatDateTime)
|
|
|
if len(itemChildMap[v.MessageId]) > 0 {
|
|
|
+ for _, vm := range itemChildMap[v.MessageId] {
|
|
|
+ vm.Headimgurl = mapUserImg[vm.UserId]
|
|
|
+ }
|
|
|
item.ChildList = itemChildMap[v.MessageId]
|
|
|
} else {
|
|
|
item.ChildList = make([]*models.CygxYanxuanSpecialMessageManageChildResp, 0)
|