From 48b2e1267c975b7f1b4600ffce978e0a7383e110 Mon Sep 17 00:00:00 2001 From: liapples Date: Tue, 19 Oct 2021 12:08:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Exception?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Api/WxpayController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Api/WxpayController.php b/app/Http/Controllers/Api/WxpayController.php index 4c247b8..4d2202f 100644 --- a/app/Http/Controllers/Api/WxpayController.php +++ b/app/Http/Controllers/Api/WxpayController.php @@ -160,7 +160,7 @@ class WxpayController // 希望微信重试 $fail('Unknown error 2'); }); - } catch (InvalidSignException | Exception $e) { + } catch (InvalidSignException | Exception | \Exception $e) { $this->log($e->getMessage() . $e->getFile() . $e->getLine()); return 'error'; } @@ -252,7 +252,7 @@ class WxpayController $fail('Unknown error 2'); }); - } catch (Exception $e) { + } catch (Exception | \Exception $e) { $this->log($e->getMessage() . $e->getFile() . $e->getLine()); return 'error'; } @@ -366,7 +366,7 @@ class WxpayController // 希望微信重试 $fail('Unknown error 2'); }); - } catch (InvalidSignException | Exception $e) { + } catch (InvalidSignException | Exception | \Exception $e) { LOG::debug('行业产品支付:', [$e->getFile(), $e->getLine(), $e->getMessage()]); return 'error'; } @@ -416,7 +416,7 @@ class WxpayController // 希望微信重试 $fail('Unknown error 2'); }); - } catch (Exception $e) { + } catch (Exception | \Exception $e) { LOG::debug('商家入驻支付回调:', [$e->getFile(), $e->getLine(), $e->getMessage()]); return 'error'; }