From b8fd2795c72368888ff1810daa95ae035fad1110 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 12 Nov 2018 22:10:45 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E5=AE=9D=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WeChat/Contracts/BasicAliPay.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/WeChat/Contracts/BasicAliPay.php b/WeChat/Contracts/BasicAliPay.php index c5bfd6c..15534c3 100644 --- a/WeChat/Contracts/BasicAliPay.php +++ b/WeChat/Contracts/BasicAliPay.php @@ -200,11 +200,10 @@ abstract class BasicAliPay $method = str_replace('.', '_', $this->options['method']) . '_response'; if (!isset($data[$method]['code']) || $data[$method]['code'] !== '10000') { throw new \WeChat\Exceptions\InvalidResponseException( - "\nResultError" . - (empty($data[$method]['code']) ? '' : "\n{$data[$method]['msg']}[{$data[$method]['code']}]") . - (empty($data[$method]['sub_code']) ? '' : "\n{$data[$method]['sub_msg']}[{$data[$method]['sub_code']}]\n"), - $data[$method]['code'], - $data + "Error: " . + (empty($data[$method]['code']) ? '' : "{$data[$method]['msg']} [{$data[$method]['code']}]\r\n") . + (empty($data[$method]['sub_code']) ? '' : "{$data[$method]['sub_msg']} [{$data[$method]['sub_code']}]\r\n"), + $data[$method]['code'], $data ); } return $this->verify($data[$method], $data['sign'], true);