|
@@ -292,7 +292,7 @@ func Template(header *protocol.RequestHeader, request *protocol.TemplateRequest) |
|
@@ -292,7 +292,7 @@ func Template(header *protocol.RequestHeader, request *protocol.TemplateRequest) |
292
|
if len(item.Example) > 0 {
|
292
|
if len(item.Example) > 0 {
|
293
|
template.Link = fmt.Sprintf("%v/#/ability/opportunity?id=%v", beego.AppConfig.String("h5_host"), item.Id)
|
293
|
template.Link = fmt.Sprintf("%v/#/ability/opportunity?id=%v", beego.AppConfig.String("h5_host"), item.Id)
|
294
|
}
|
294
|
}
|
295
|
- if template.Question, err = agg.GetCheckQuestionsByTemplateId(templates.Id); err != nil {
|
295
|
+ if template.Questions, err = agg.GetCheckQuestionsByTemplateId(templates.Id); err != nil {
|
296
|
log.Error(err)
|
296
|
log.Error(err)
|
297
|
return
|
297
|
return
|
298
|
}
|
298
|
}
|