作者 yangfu

公告发布修改

... ... @@ -310,10 +310,12 @@ func GetBulletin(id int, companyId int64, request *protocol.GetBulletinRequest)
Type: int(question.Type),
Title: question.Title,
}
if len(question.Content) > 0 {
if err = json.Unmarshal([]byte(question.Content), &rsp.Question.Content); err != nil {
log.Error(err.Error())
return
}
}
for i := range rsp.Question.Content {
if rsp.Question.Content[i].Id == -1 && len(rsp.Question.Content[i].Content) == 0 {
rsp.Question.Content[i].Content = "其他"
... ...