From eeb877bd87d4ec72080bf5b7b880a2dce79a386b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8A=80=E6=9C=AF=E8=80=81=E8=83=A1?= <1094551889@qq.com> Date: Mon, 16 Dec 2024 15:36:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B2=A1=E6=9C=89=E6=94=B6?= =?UTF-8?q?=E6=AC=BE=E7=A0=81=EF=BC=8C=E7=A8=8B=E5=BA=8F=E6=8A=A5BUG?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/model/Order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/model/Order.php b/app/model/Order.php index 8726210..506cc2f 100644 --- a/app/model/Order.php +++ b/app/model/Order.php @@ -122,10 +122,10 @@ class Order extends BaseModel $channel_infos = PayChannel::whereIn('account_id', $aids)->where('state', 1)->order('last_time', 'asc')->select(); if (!$channel_infos || !$aids) return []; // 微信/支付宝收款处理 + $channel_info = null; foreach ($channel_infos as $key => $value) { $check_wx = preg_match('/^wxpay\d+#/i', $value->channel); $check_ali = preg_match('/^alipay\d+#/i', $value->channel); - $channel_info = null; if ($check_wx && $type === 'wxpay') { $channel_info = $channel_infos[$key]; break;