fix: 修复 calculator_tool.go 中 import path 误入 switch case 的 bug
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -341,7 +341,7 @@ func applyFunc(name string, arg float64) (float64, error) {
|
|||||||
return math.Ceil(arg), nil
|
return math.Ceil(arg), nil
|
||||||
case "round":
|
case "round":
|
||||||
return math.Round(arg), nil
|
return math.Round(arg), nil
|
||||||
case "github.com/yourname/cyrene-ai/pkg/logger":
|
case "log":
|
||||||
if arg <= 0 {
|
if arg <= 0 {
|
||||||
return 0, fmt.Errorf("log 参数必须大于0")
|
return 0, fmt.Errorf("log 参数必须大于0")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user