test data

This commit is contained in:
2021-03-24 22:21:53 +09:00
parent f12e298298
commit 60d511d3c1
2 changed files with 6 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ class Test extends Command
} catch(RequestFailedException $e) { } catch(RequestFailedException $e) {
return null; return null;
} }
var_dump($reponse);
dd($response->getErrorCode()); dd($response->getErrorCode());
} }
} }

View File

@@ -109,12 +109,14 @@ class ProcessSendEveMailJob implements ShouldQueue
$this->release(20); $this->release(20);
} }
if($response == null) { //Get the error code and take the appropriate action
$errorCode = $response->getErrorCode();
if($errorCode === null) {
$this->release(30); $this->release(30);
} }
//Get the error code and take the appropriate action
$errorCode = $response->getErrorCode();
switch($errorCode) { switch($errorCode) {
case 400: //Bad Request case 400: //Bad Request