diff --git a/Processor/ProcessC2CMessage.go b/Processor/ProcessC2CMessage.go index 6e6f5b99..cbf40c07 100644 --- a/Processor/ProcessC2CMessage.go +++ b/Processor/ProcessC2CMessage.go @@ -28,6 +28,10 @@ func (p *Processors) ProcessC2CMessage(data *dto.WSC2CMessageData) error { //sourece是源头频道 //GuildID := data.GuildID + if data.Author.ID == "" { + mylog.Printf("出现ID为空未知错误.%v\n", data) + } + //获取当前的s值 当前ws连接所收到的信息条数 s := client.GetGlobalS() if !p.Settings.GlobalPrivateToChannel { diff --git a/Processor/ProcessGroupMessage.go b/Processor/ProcessGroupMessage.go index 49276aeb..a943eb60 100644 --- a/Processor/ProcessGroupMessage.go +++ b/Processor/ProcessGroupMessage.go @@ -35,6 +35,10 @@ func (p *Processors) ProcessGroupMessage(data *dto.WSGroupATMessageData) error { var GroupID64 int64 var err error + if data.Author.ID == "" { + mylog.Printf("出现ID为空未知错误.%v\n", data) + } + if !config.GetStringOb11() { if config.GetIdmapPro() { //将真实id转为int userid64 diff --git a/readme.md b/readme.md index b525998d..85bdd8ff 100644 --- a/readme.md +++ b/readme.md @@ -75,7 +75,7 @@ Gensokyo文档(施工中):[起步](/docs/起步-注册QQ开放平台&启动genso ## 特别鸣谢 - [`mnixry/nonebot-plugin-gocqhttp`](https://github.com/mnixry/nonebot-plugin-gocqhttp/): 本项目采用了mnixry编写的前端,并实现了与它对应的,基于qq官方api的后端api. -- 感谢 Parker Liang 提供的技术指导和支持. +- 特别鸣谢[`dk 盾`](https://www.dkdun.cn/),友情赞助服务器资源 ### 接口