Browse Source

新增对数计算公式

longyu 2 years ago
parent
commit
cd6505b85f
1 changed files with 1 additions and 1 deletions
  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 {