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