浏览代码

Merge branch 'feature/eta_1.6.3' into debug

hsun 10 月之前
父节点
当前提交
a5a8c98c50
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      controllers/data_manage/factor_edb_series.go

+ 2 - 2
controllers/data_manage/factor_edb_series.go

@@ -128,7 +128,7 @@ func (this *FactorEdbSeriesController) Add() {
 					br.Msg = "请输入N值"
 					return
 				}
-				formulaInt, ok := v.Formula.(int)
+				formulaInt, ok := v.Formula.(float64)
 				if !ok {
 					br.Msg = "N值格式有误"
 					return
@@ -296,7 +296,7 @@ func (this *FactorEdbSeriesController) Edit() {
 					br.Msg = "请输入N值"
 					return
 				}
-				formulaInt, ok := v.Formula.(int)
+				formulaInt, ok := v.Formula.(float64)
 				if !ok {
 					br.Msg = "N值格式有误"
 					return