feat: 调度任务多语言

This commit is contained in:
TsMask
2023-11-20 18:54:15 +08:00
parent 506866e082
commit 084a7b3c93
3 changed files with 120 additions and 62 deletions

View File

@@ -1,7 +1,6 @@
package repository
import (
"fmt"
"strings"
"time"
@@ -210,7 +209,11 @@ func (r *SysJobImpl) CheckUniqueJob(sysJob model.SysJob) string {
return ""
}
if len(results) > 0 {
return fmt.Sprintf("%v", results[0]["str"])
v, ok := results[0]["str"].(string)
if ok {
return v
}
return ""
}
return ""
}