修改没有收款码,程序报BUG问题

This commit is contained in:
技术老胡 2024-12-16 15:36:55 +08:00
parent e9f64988a9
commit eeb877bd87

View File

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