update Rest
This commit is contained in:
parent
2d5f28643f
commit
6e6b55f9dd
|
@ -63,8 +63,8 @@ class RestAuth extends alphayax\utils\Rest {
|
|||
*/
|
||||
protected function checkResponse(){
|
||||
$response = $this->getCurlResponse();
|
||||
if( false === $response->success){
|
||||
throw new \Exception( $response->msg);
|
||||
if( false === $response['success']){
|
||||
throw new \Exception( $response['success']);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue