mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-09-20 18:56:39 +08:00
修改没有收款码,程序报BUG问题
This commit is contained in:
parent
e9f64988a9
commit
eeb877bd87
@ -122,10 +122,10 @@ class Order extends BaseModel
|
|||||||
$channel_infos = PayChannel::whereIn('account_id', $aids)->where('state', 1)->order('last_time', 'asc')->select();
|
$channel_infos = PayChannel::whereIn('account_id', $aids)->where('state', 1)->order('last_time', 'asc')->select();
|
||||||
if (!$channel_infos || !$aids) return [];
|
if (!$channel_infos || !$aids) return [];
|
||||||
// 微信/支付宝收款处理
|
// 微信/支付宝收款处理
|
||||||
|
$channel_info = null;
|
||||||
foreach ($channel_infos as $key => $value) {
|
foreach ($channel_infos as $key => $value) {
|
||||||
$check_wx = preg_match('/^wxpay\d+#/i', $value->channel);
|
$check_wx = preg_match('/^wxpay\d+#/i', $value->channel);
|
||||||
$check_ali = preg_match('/^alipay\d+#/i', $value->channel);
|
$check_ali = preg_match('/^alipay\d+#/i', $value->channel);
|
||||||
$channel_info = null;
|
|
||||||
if ($check_wx && $type === 'wxpay') {
|
if ($check_wx && $type === 'wxpay') {
|
||||||
$channel_info = $channel_infos[$key];
|
$channel_info = $channel_infos[$key];
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user