Merge pull request #132 from eatmoreapple/fix-web-init-login
This commit is contained in:
commit
fe2f73b5a2
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user