From 5807d5d6b7dd8302ae31f9773907aabde9bf7aef Mon Sep 17 00:00:00 2001 From: river Date: Tue, 28 Mar 2023 19:11:03 +0800 Subject: [PATCH 1/2] fix: #146 include role_list when build binary --- .github/workflows/binary-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 2cf6d2a5598be257c7ffa94d9e386a88a6936b4b Mon Sep 17 00:00:00 2001 From: river Date: Tue, 28 Mar 2023 19:22:49 +0800 Subject: [PATCH 2/2] fix: #100 #142 #115 unicode characters show problem --- code/handlers/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) }) }