...
|
...
|
@@ -310,9 +310,11 @@ func GetBulletin(id int, companyId int64, request *protocol.GetBulletinRequest) |
|
|
Type: int(question.Type),
|
|
|
Title: question.Title,
|
|
|
}
|
|
|
if err = json.Unmarshal([]byte(question.Content), &rsp.Question.Content); err != nil {
|
|
|
log.Error(err.Error())
|
|
|
return
|
|
|
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 {
|
...
|
...
|
|