We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a47630 commit 8252d04Copy full SHA for 8252d04
service/handler/bot.go
@@ -132,6 +132,10 @@ func FetchQrCode(c *gin.Context) {
132
log.Infof("开始初始化设备信息")
133
bot.InitDevice(0)
134
log.Infof("设备信息 %+v", string(client.SystemDeviceInfo.ToJson()))
135
+ if bot.Cli != nil {
136
+ bot.Cli.Disconnect()
137
+ time.Sleep(time.Second)
138
+ }
139
bot.Cli = client.NewClientEmpty()
140
log.Infof("初始化日志")
141
bot.InitLog(bot.Cli)
@@ -213,6 +217,10 @@ func CreateBotImpl(uin int64, password string) {
213
217
214
218
215
219
log.Infof("创建机器人 %+v", uin)
220
221
222
223
216
224
bot.Cli = client.NewClient(uin, password)
225
226
0 commit comments