diff --git a/drivers/189pc/189.go b/drivers/189pc/189.go index a22f51be..b6f72f6b 100644 --- a/drivers/189pc/189.go +++ b/drivers/189pc/189.go @@ -291,6 +291,13 @@ func (s *State) Request(method string, fullUrl string, params Params, callback f return nil, fmt.Errorf(erron.Msg) } if erron.ErrorCode != "" { + switch erron.ErrorCode { + case "InvalidSessionKey": + if err := s.RefreshSession(account); err != nil { + return nil, err + } + return s.Request(method, fullUrl, params, callback, account) + } return nil, fmt.Errorf(erron.ErrorMsg) }