Browse Source

fix: AI预测图表

hsun 4 weeks ago
parent
commit
af69eaf805
2 changed files with 14 additions and 0 deletions
  1. 7 0
      controllers/chart_auth.go
  2. 7 0
      controllers/chart_common.go

+ 7 - 0
controllers/chart_auth.go

@@ -106,6 +106,13 @@ func (this *ChartAuthController) ChartInfoDetail() {
 			br.ErrMsg = errMsg
 			br.ErrMsg = errMsg
 			return
 			return
 		}
 		}
+	case utils.CHART_SOURCE_AI_PREDICT_MODEL_DAILY, utils.CHART_SOURCE_AI_PREDICT_MODEL_MONTHLY:
+		resp, isOk, msg, errMsg = GetAiPredictChartInfoDetailFromUniqueCode(chartInfo, key)
+		if !isOk {
+			br.Msg = msg
+			br.ErrMsg = errMsg
+			return
+		}
 	default:
 	default:
 		br.Msg = "错误的图表"
 		br.Msg = "错误的图表"
 		br.ErrMsg = "错误的图表"
 		br.ErrMsg = "错误的图表"

+ 7 - 0
controllers/chart_common.go

@@ -139,6 +139,13 @@ func (this *ChartController) CommonChartInfoDetailFromUniqueCode() {
 			br.ErrMsg = errMsg
 			br.ErrMsg = errMsg
 			return
 			return
 		}
 		}
+	case utils.CHART_SOURCE_AI_PREDICT_MODEL_DAILY, utils.CHART_SOURCE_AI_PREDICT_MODEL_MONTHLY:
+		resp, isOk, msg, errMsg = GetAiPredictChartInfoDetailFromUniqueCode(chartInfo, key)
+		if !isOk {
+			br.Msg = msg
+			br.ErrMsg = errMsg
+			return
+		}
 	default:
 	default:
 		br.Msg = "错误的图表"
 		br.Msg = "错误的图表"
 		br.ErrMsg = "错误的图表"
 		br.ErrMsg = "错误的图表"