weizong song 5 years ago
parent fcc63b793c
commit 0db9b9e86d

@ -44,7 +44,7 @@ class WxMicroPay extends WxPayCommon
//判断接口是否返回成功
if (!array_key_exists("return_code", $result) || !array_key_exists("result_code", $result)) {
throw new Exception("接口调用失败!");
throw new Exception(json_encode($result));
}
if ($result["return_code"] == "SUCCESS" && $result["result_code"] == "FAIL" && $result["err_code"] != "USERPAYING" && $result["err_code"] != "SYSTEMERROR") {
throw new Exception("支付失败!");

Loading…
Cancel
Save