fix: 在 fetchSelf 函数中初始化 reply 变量以确保返回值的正确性

This commit is contained in:
lixiangwuxian
2025-04-11 00:51:01 +08:00
parent 893c4ae887
commit 98c9073f0d
2 changed files with 2 additions and 5 deletions

View File

@@ -95,6 +95,7 @@ func fetchSelf(msg model.Message) (reply *model.Reply) {
log.Println("parseSystemInfo failed", err)
return
}
reply = &model.Reply{}
reply.FromMsg = msg
reply.ReplyMsg = info.String()
return