Merge pull request #132 from eatmoreapple/fix-web-init-login

This commit is contained in:
多吃点苹果 2022-11-27 22:41:34 +08:00 committed by GitHub
commit fe2f73b5a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,6 +110,9 @@ func (c *Caller) WebInit(request *BaseRequest) (*WebInitResponse, error) {
if err := scanJson(resp.Body, &webInitResponse); err != nil {
return nil, err
}
if !webInitResponse.BaseResponse.Ok() {
return nil, webInitResponse.BaseResponse.Err()
}
return &webInitResponse, nil
}