diff --git a/.github/workflows/binary-release.yml b/.github/workflows/binary-release.yml index 049d047d..6282a09f 100644 --- a/.github/workflows/binary-release.yml +++ b/.github/workflows/binary-release.yml @@ -36,4 +36,4 @@ jobs: md5sum: false project_path: "./code" binary_name: "feishu-chatgpt" - extra_files: ./code/config.example.yaml readme.md + extra_files: ./code/config.example.yaml readme.md LICENSE ./code/role_list.yaml diff --git a/code/handlers/common.go b/code/handlers/common.go index 0a594740..6bfac0cf 100644 --- a/code/handlers/common.go +++ b/code/handlers/common.go @@ -60,7 +60,7 @@ func processUnicode(msg string) string { r, _ := regexp.Compile(`\\u`) s = r.ReplaceAllString(s, "") i, _ := strconv.ParseInt(s, 16, 32) - return strconv.Itoa(int(i)) + return string(rune(i)) }) }