1.添加windows远程执行任务支持
2.README.md更新windows支持说明 3.sql更新
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
||||
"github.com/george518/PPGo_Job/models"
|
||||
"strconv"
|
||||
"strings"
|
||||
"github.com/axgle/mahonia"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -348,3 +349,11 @@ func serverLists(authStr string, adminId int) (sls []serverList) {
|
||||
}
|
||||
return sls
|
||||
}
|
||||
|
||||
func gbkAsUtf8(str string) string {
|
||||
srcDecoder := mahonia.NewDecoder("gbk")
|
||||
desDecoder := mahonia.NewDecoder("utf-8")
|
||||
resStr := srcDecoder.ConvertString(str)
|
||||
_, resBytes, _ := desDecoder.Translate([]byte(resStr), true)
|
||||
return string(resBytes)
|
||||
}
|
||||
Reference in New Issue
Block a user