正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -340,9 +340,11 @@ func TemplateList(uid, companyId int64, request *protocol.TemplateListRequest) ( | @@ -340,9 +340,11 @@ func TemplateList(uid, companyId int64, request *protocol.TemplateListRequest) ( | ||
| 340 | // log.Error(err.Error()) | 340 | // log.Error(err.Error()) |
| 341 | // return | 341 | // return |
| 342 | //} | 342 | //} |
| 343 | + if len(temp.VisibleObject) > 0 { | ||
| 343 | if e := json.Unmarshal([]byte(temp.VisibleObject), &vObj); e != nil { | 344 | if e := json.Unmarshal([]byte(temp.VisibleObject), &vObj); e != nil { |
| 344 | log.Error("%v %v %v", temp.Id, temp.VisibleObject, e.Error()) | 345 | log.Error("%v %v %v", temp.Id, temp.VisibleObject, e.Error()) |
| 345 | } | 346 | } |
| 347 | + } | ||
| 346 | tempItem := &protocol.TemplateItem{ | 348 | tempItem := &protocol.TemplateItem{ |
| 347 | Id: temp.Id, | 349 | Id: temp.Id, |
| 348 | Name: temp.Name, | 350 | Name: temp.Name, |
-
请 注册 或 登录 后发表评论