From 16fa0f8037298c55ebd1c4bb0c9ce53c98b8e281 Mon Sep 17 00:00:00 2001 From: weizong song Date: Mon, 5 Apr 2021 16:08:47 +0800 Subject: [PATCH] up --- app/Libs/WxMicroPay.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Libs/WxMicroPay.class.php b/app/Libs/WxMicroPay.class.php index 8625f3c..c2ebe05 100644 --- a/app/Libs/WxMicroPay.class.php +++ b/app/Libs/WxMicroPay.class.php @@ -71,14 +71,12 @@ class WxMicroPay extends WxPayCommon sleep(2); $query_times--; continue; - } - if ($query_result["trade_state"] == "USERPAYING") { + } elseif ($query_result["trade_state"] == "USERPAYING") { \Log::info("3"); sleep(2); $query_times--; continue; - } - if ($result["trade_state"] == "SUCCESS") { + } elseif ($result["trade_state"] == "SUCCESS") { $transaction_id = $query_result["transaction_id"]; $update = [ "paid_at" => date("Y-m-d H:i:s"),