fix: 在 fetchSelf 函数中初始化 reply 变量以确保返回值的正确性
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user