Skip to content

Commit

Permalink
fix csrf token
Browse files Browse the repository at this point in the history
  • Loading branch information
lz1998 committed Apr 5, 2021
1 parent 6a9234a commit 645643b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions service/bot/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ func handleApiFrame(cli *client.QQClient, req *onebot.Frame) *onebot.Frame {
resp.Data = &onebot.Frame_GetCookiesResp{
GetCookiesResp: HandleGetCookies(cli, data.GetCookiesReq),
}
case *onebot.Frame_GetCsrfTokenReq:
resp.FrameType = onebot.Frame_TGetCsrfTokenResp
resp.Data = &onebot.Frame_GetCsrfTokenResp{
GetCsrfTokenResp: HandleGetCSRFToken(cli, data.GetCsrfTokenReq),
}
default:
return resp
}
Expand Down

0 comments on commit 645643b

Please sign in to comment.