test
This commit is contained in:
parent
809163fdc2
commit
0ac615e264
@ -96,7 +96,7 @@ class WechatPayService
|
|||||||
if ($e instanceof \GuzzleHttp\Exception\RequestException && $e->hasResponse()) {
|
if ($e instanceof \GuzzleHttp\Exception\RequestException && $e->hasResponse()) {
|
||||||
$r = $e->getResponse();
|
$r = $e->getResponse();
|
||||||
$res = json_decode($r->getBody());
|
$res = json_decode($r->getBody());
|
||||||
return ["code" => 1, "err_msg" => $res->message];
|
return ["code" => 1, "err_msg" => $r->getBody()];
|
||||||
}
|
}
|
||||||
|
|
||||||
return ["code" => 1, "err_msg" => $e->getMessage()];
|
return ["code" => 1, "err_msg" => $e->getMessage()];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user