Skip to content

Commit

Permalink
Merge a000924 into b4b1223
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoshinonyaruko authored Jan 2, 2024
2 parents b4b1223 + a000924 commit ae3c3a6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ config.yml
*.db.lock
*.ini
*.bat
session.pid

# Go specific
gensokyo-kook.exe
Expand Down
5 changes: 5 additions & 0 deletions handlers/send_group_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ func HandleSendGroupMsg(client callapi.Client, Token string, BaseUrl string, mes
msgType = GetMessageTypeByUseridV2(message.Params.UserID)
}

//兜底防止死循环
if msgType == "" {
msgType = "guild"
}

mylog.Printf("send_group_msg获取到信息类型:%v", msgType)
var idInt64 int64
var err error
Expand Down
2 changes: 2 additions & 0 deletions images/upload_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ func UploadImage(filePath, token string, baseurl string) (string, error) {

// UploadImageBase64 函数上传Base64编码的图片并返回图片URL
func UploadImageBase64(base64String, token string, baseurl string) (string, error) {
// 替换所有空格为加号
base64String = strings.ReplaceAll(base64String, " ", "+")
// 解码Base64字符串
decodedData, err := base64.StdEncoding.DecodeString(base64String)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ gensokyo-kook兼容 [OneBot-v11](https://github.com/botuniverse/onebot-11) ,

实现插件开发和用户开发者无需重新开发,复用过往生态的插件和使用体验.

持续完善中.....交流群:196173384
持续完善中....交流群:196173384

欢迎测试,询问任何有关使用的问题,有问必答,有难必帮~

Expand Down

0 comments on commit ae3c3a6

Please sign in to comment.