|
@@ -39,6 +39,28 @@ func (this *ReportShareController) Detail() {
|
|
|
report.Content = html.UnescapeString(report.Content)
|
|
|
report.ContentStruct = html.UnescapeString(report.ContentStruct)
|
|
|
|
|
|
+ if report.HeadResourceId > 0 {
|
|
|
+ headResource, err := models.GetResourceItemById(report.HeadResourceId)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "操作失败"
|
|
|
+ br.ErrMsg = "获取资源库版头失败, Err: " + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ report.HeadImg = headResource.ImgUrl
|
|
|
+ report.HeadStyle = headResource.Style
|
|
|
+ }
|
|
|
+
|
|
|
+ if report.EndResourceId > 0 {
|
|
|
+ endResource, err := models.GetResourceItemById(report.EndResourceId)
|
|
|
+ if err != nil {
|
|
|
+ br.Msg = "操作失败"
|
|
|
+ br.ErrMsg = "获取资源库版头失败, Err: " + err.Error()
|
|
|
+ return
|
|
|
+ }
|
|
|
+ report.EndImg = endResource.ImgUrl
|
|
|
+ report.EndStyle = endResource.Style
|
|
|
+ }
|
|
|
+
|
|
|
resp := new(models.ReportShareDetailResp)
|
|
|
// 免责声明
|
|
|
conf, e := models.GetBusinessConf()
|