浏览代码

Merge branch 'aj_add_log'

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

+ 1 - 1
services/base_from_calculate.go

@@ -6,7 +6,7 @@ import (
 
 // CheckFormula 检测计算公式是否异常
 func CheckFormula(formula string) map[string]string {
-	mathFormula := []string{"MAX", "MIN", "ABS", "ACOS", "ASIN", "CEIL", "MOD", "POW", "ROUND", "SIGN", "SIN", "TAN", "LOG10", "LOG2", "LOG"}
+	mathFormula := []string{"MAX", "MIN", "ABS", "ACOS", "ASIN", "CEIL", "MOD", "POW", "ROUND", "SIGN", "SIN", "TAN", "LOG10", "LOG2", "LOG", "LN"}
 
 	str := strings.ToUpper(formula)
 	for _, v := range mathFormula {