Commit 6063d33d authored by hj's avatar hj

更新提交

parent cc1d9ca3
...@@ -70,6 +70,7 @@ class CheMenuApiService extends PlatformAbstractService ...@@ -70,6 +70,7 @@ class CheMenuApiService extends PlatformAbstractService
], []); ], []);
return $this->returnResponse($response); return $this->returnResponse($response);
}catch(\Throwable $exception){ }catch(\Throwable $exception){
SimpleLogs::writeLog($exception->getMessage(), 'chemenu error', 'error');
if(preg_match('/\{(?<response>[\s\S]*?)\}/i', $exception->getMessage(), $response)){ if(preg_match('/\{(?<response>[\s\S]*?)\}/i', $exception->getMessage(), $response)){
$response = json_decode('{'.$response['response'].'}', true); $response = json_decode('{'.$response['response'].'}', true);
if($response && $response['status'] == 429){ if($response && $response['status'] == 429){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment