From 7e13497a8525348dad6f7d606521a0f4ca88da98 Mon Sep 17 00:00:00 2001 From: NothAmor Date: Mon, 17 Jul 2023 18:16:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D=E7=A9=BA?= =?UTF-8?q?=E6=8C=87=E9=92=88=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 2743b5a..3744dc3 100644 --- a/main.go +++ b/main.go @@ -35,7 +35,11 @@ func main() { defer reloadStorage.Close() // 执行热登录 - global.Bot.HotLogin(reloadStorage) + err = global.Bot.HotLogin(reloadStorage) + if err != nil { + fmt.Printf("热登录失败: %s\n", err) + return + } // 注册登陆二维码回调 global.Bot.UUIDCallback = openwechat.PrintlnQrcodeUrl