diff --git a/app/service/user/ApiService.php b/app/service/user/ApiService.php index 329be13..ee2fd70 100644 --- a/app/service/user/ApiService.php +++ b/app/service/user/ApiService.php @@ -84,7 +84,13 @@ class ApiService extends BaseService curl_setopt($ch, CURLOPT_POSTFIELDS, $result); $output = curl_exec($ch); curl_close($ch); - return json_decode($output, true); + $result = json_decode($output, true); + if ($result['errorCode'] != '') { + throw new ApiException($result['message']); + } + return [ + 'msg' => 'success' + ]; } } \ No newline at end of file