浏览代码

Merge remote-tracking branch 'origin/master' into debug

Roc 2 年之前
父节点
当前提交
0bd405ecdb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/base_from_ths.go

+ 1 - 1
services/base_from_ths.go

@@ -97,7 +97,7 @@ func getEdbDataFromThs(edbCode, startDate, endDate string, num int) (item *EdbDa
 					err = tmpErr
 					err = tmpErr
 					return
 					return
 				}
 				}
-				tableValue, _ = tmpTableValue.Float64()
+				tableValue, _ = tmpTableValue.Truncate(4).Float64()
 			} else {
 			} else {
 				err = errors.New("错误的数据类型" + reflect.TypeOf(tmpValue).String())
 				err = errors.New("错误的数据类型" + reflect.TypeOf(tmpValue).String())
 				return
 				return