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);