From e3680b00331e9d00291b14b94e590e1ee6ebd74a Mon Sep 17 00:00:00 2001 From: weizong song Date: Mon, 5 Apr 2021 14:38:15 +0800 Subject: [PATCH] up --- app/Libs/WxMicroPay.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Libs/WxMicroPay.class.php b/app/Libs/WxMicroPay.class.php index 65f8d53..ee49539 100644 --- a/app/Libs/WxMicroPay.class.php +++ b/app/Libs/WxMicroPay.class.php @@ -25,15 +25,15 @@ class WxMicroPay extends WxPayCommon $this->setParameter("auth_code", request()->auth_code); if (!$this->parameters["out_trade_no"]) { - throw new Exception("缺少必填参数out_trade_no!" . "
"); + throw new Exception("缺少必填参数out_trade_no!"); } elseif (!$this->parameters["body"]) { - throw new Exception("缺少必填参数body!" . "
"); + throw new Exception("缺少必填参数body!"); } elseif (!$this->parameters["total_fee"]) { - throw new Exception("缺少必填参数total_fee!" . "
"); + throw new Exception("缺少必填参数total_fee!"); } elseif (!$this->parameters["auth_code"]) { - throw new Exception("缺少必填参数auth_code!" . "
"); + throw new Exception("缺少必填参数auth_code!"); } elseif (!strlen($this->parameters["auth_code"]) != 18) { - throw new Exception("支付码不正确!" . "
"); + throw new Exception("支付码不正确!"); } \Log::info($this->parameters);