Skip to content

Commit f9916f3

Browse files
committed
fetch query qrcode status
1 parent 8252d04 commit f9916f3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

service/handler/bot.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ func QueryQRCodeStatus(c *gin.Context) {
160160
return
161161
}
162162

163+
if bot.Cli.Online {
164+
c.String(http.StatusBadRequest, "already online")
165+
return
166+
}
167+
163168
queryQRCodeStatusResp, err := bot.Cli.QueryQRCodeStatus(req.Sig)
164169
if err != nil {
165170
c.String(http.StatusInternalServerError, fmt.Sprintf("failed to query qrcode status, %+v", err))

0 commit comments

Comments
 (0)