1.添加windows远程执行任务支持

2.README.md更新windows支持说明
3.sql更新
This commit is contained in:
linxiaozhi
2019-02-18 00:03:35 +08:00
parent 5254e85600
commit 4f7f536e97
10 changed files with 254 additions and 33 deletions

View File

@@ -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)
}