浏览代码

fix:修复研报添加版头,然后在版图素材库中删掉该版头,提示操作失败,并清空了研报内容

Roc 3 月之前
父节点
当前提交
1aab3d7b73
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      controllers/smart_report/smart_report.go

+ 2 - 2
controllers/smart_report/smart_report.go

@@ -393,7 +393,7 @@ func (this *SmartReportController) Detail() {
 		headResource, err := smart_report.GetResourceItemById(resp.HeadResourceId)
 		if err != nil && err.Error() != utils.ErrNoRow() {
 			br.Msg = "操作失败"
-			br.ErrMsg = "获取资源库版失败, Err: " + err.Error()
+			br.ErrMsg = "获取资源库版失败, Err: " + err.Error()
 			return
 		}
 		if headResource != nil && headResource.ResourceId > 0 {
@@ -406,7 +406,7 @@ func (this *SmartReportController) Detail() {
 		endResource, err := smart_report.GetResourceItemById(resp.EndResourceId)
 		if err != nil && err.Error() != utils.ErrNoRow() {
 			br.Msg = "操作失败"
-			br.ErrMsg = "获取资源库版失败, Err: " + err.Error()
+			br.ErrMsg = "获取资源库版失败, Err: " + err.Error()
 			return
 		}
 		if endResource != nil && endResource.ResourceId > 0 {