Commit 9491d921 authored by hangjun83's avatar hangjun83

更新

parent e78015f7
......@@ -13,6 +13,7 @@ namespace App\Services\ThirdPlatform\Api;
use App\Repositories\Contracts\ThirdApiPlatformRepository;
use App\Services\ThirdPlatform\PlatformAbstractService;
use App\Support\Facades\SimpleLogs;
use App\Support\Traits\HttpClientHelpers;
......@@ -48,7 +49,7 @@ class BjsApiService extends PlatformAbstractService
return $this->apiResponse($response);
}
}catch(\Exception $e){
return $this->requestError($e);
$this->requestError($e);
}
}
......@@ -77,8 +78,9 @@ class BjsApiService extends PlatformAbstractService
return false;
}
protected function requestError($err)
protected function requestError($response)
{
return false;
SimpleLogs::writeLog($response->getMessage(), 'Bjs api error', 'error');
throw $response;
}
}
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