xyxie 8 months ago
parent
commit
36d911028a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      controllers/data_manage/future_good/future_good_chart_info.go

+ 4 - 0
controllers/data_manage/future_good/future_good_chart_info.go

@@ -1309,6 +1309,10 @@ func getFutureGoodChartInfo(chartInfo *data_manage.ChartInfoView, chartType, dat
 	}
 	futureGoodEdbInfoMapping, err = data_manage.GetFutureGoodEdbChartEdbMapping(chartInfoId)
 	if err != nil {
+		if err.Error() == utils.ErrNoRow() {
+			br.Msg = "期货指标不存在"
+			return
+		}
 		br.Msg = "获取失败"
 		br.ErrMsg = "获取图表,指标信息失败,Err:" + err.Error()
 		return