Skip to content

Commit

Permalink
Merge pull request #27 from icowan/master
Browse files Browse the repository at this point in the history
fix err_code is null
  • Loading branch information
icowan authored Sep 29, 2020
2 parents 424b4a9 + a574c42 commit 97d7dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/EccangPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ protected function parseResponse(string $resp): array
if (!empty($res["Error"])) {
$msg .= sprintf(" err: %s, code: %s ", $res["Error"]["errMessage"], $res["Error"]["errCode"]);
}
throw new ExpressException(sprintf(" err: %s, code: %d ", $msg, $res["err_code"]));
throw new ExpressException(sprintf(" err: %s, code: %d ", $msg, !empty($res["err_code"]) ? $res["err_code"] : 0));
}

return $res;
Expand Down

0 comments on commit 97d7dba

Please sign in to comment.