Procházet zdrojové kódy

Merge branch 'ETA_1.8.1' into debug

zwxi před 1 rokem
rodič
revize
92de7e3a6a
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      controllers/smart_report/smart_report.go

+ 2 - 2
controllers/smart_report/smart_report.go

@@ -391,7 +391,7 @@ func (this *SmartReportController) Detail() {
 	resp := smart_report.FormatSmartReport2Item(item)
 	if resp.HeadResourceId > 0 {
 		headResource, err := smart_report.GetResourceItemById(resp.HeadResourceId)
-		if err == nil {
+		if err != nil {
 			br.Msg = "操作失败"
 			br.ErrMsg = "获取资源库版头失败, Err: " + e.Error()
 			return
@@ -402,7 +402,7 @@ func (this *SmartReportController) Detail() {
 
 	if resp.EndResourceId > 0 {
 		endResource, err := smart_report.GetResourceItemById(resp.EndResourceId)
-		if err == nil {
+		if err != nil {
 			br.Msg = "操作失败"
 			br.ErrMsg = "获取资源库版头失败, Err: " + e.Error()
 			return