|
@@ -10,6 +10,7 @@ import (
|
|
|
"hongze/hongze_yb/models/tables/company_product"
|
|
|
"hongze/hongze_yb/models/tables/wx_user"
|
|
|
"hongze/hongze_yb/models/tables/yb_comment_anonymous_user"
|
|
|
+ "hongze/hongze_yb/models/tables/yb_community_question"
|
|
|
"hongze/hongze_yb/models/tables/yb_community_question_comment"
|
|
|
"hongze/hongze_yb/services/alarm_msg"
|
|
|
"hongze/hongze_yb/services/company_approval_message"
|
|
@@ -451,12 +452,17 @@ func systemMessageToAdmin(adminInfo admin.Admin, wxUser user.UserInfo, community
|
|
|
remark := `您有新的问答评论待查阅`
|
|
|
content := `您有新的问答评论待查阅`
|
|
|
|
|
|
+ // 获取评论对应的问答信息
|
|
|
+ communityQuestion, err := yb_community_question.GetItemById(int(communityQuestionComment.CommunityQuestionID))
|
|
|
+ if err != nil {
|
|
|
+ err = errors.New("获取评论对应的问答失败,err:" + err.Error())
|
|
|
+ }
|
|
|
messageInfo := company_approval_message.MessageInfo{
|
|
|
CompanyName: companyInfo.CompanyName,
|
|
|
ProductId: productId,
|
|
|
CompanyProductStatus: companyProductInfo.Status,
|
|
|
Title: communityQuestionComment.Content,
|
|
|
- Content: communityQuestionComment.Content,
|
|
|
+ Content: communityQuestion.QuestionContent,
|
|
|
UserId: wxUser.UserID,
|
|
|
UserName: communityQuestionComment.RealName,
|
|
|
CreateTime: communityQuestionComment.CreateTime,
|