|
|
|
|
@ -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!" . "<br>");
|
|
|
|
|
throw new Exception("缺少必填参数out_trade_no!");
|
|
|
|
|
} elseif (!$this->parameters["body"]) {
|
|
|
|
|
throw new Exception("缺少必填参数body!" . "<br>");
|
|
|
|
|
throw new Exception("缺少必填参数body!");
|
|
|
|
|
} elseif (!$this->parameters["total_fee"]) {
|
|
|
|
|
throw new Exception("缺少必填参数total_fee!" . "<br>");
|
|
|
|
|
throw new Exception("缺少必填参数total_fee!");
|
|
|
|
|
} elseif (!$this->parameters["auth_code"]) {
|
|
|
|
|
throw new Exception("缺少必填参数auth_code!" . "<br>");
|
|
|
|
|
throw new Exception("缺少必填参数auth_code!");
|
|
|
|
|
} elseif (!strlen($this->parameters["auth_code"]) != 18) {
|
|
|
|
|
throw new Exception("支付码不正确!" . "<br>");
|
|
|
|
|
throw new Exception("支付码不正确!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
\Log::info($this->parameters);
|
|
|
|
|
|