30 lines
809 B
PHP
30 lines
809 B
PHP
<?php
|
||
|
||
namespace app\admin\controller\order;
|
||
|
||
use app\common\library\game\DepositChannel;
|
||
|
||
/**
|
||
* 渠道充值订单:仅列出已注册且启用的支付渠道(pay_channel)产生的充值单
|
||
*/
|
||
class DepositChannelOrder extends DepositOrder
|
||
{
|
||
/**
|
||
* @param list<array<mixed>> $where
|
||
*/
|
||
protected function appendDepositOrderIndexWhere(array &$where, string $mainShort): void
|
||
{
|
||
if ($mainShort === '') {
|
||
return;
|
||
}
|
||
$effective = DepositChannel::effectiveRowsFromDb();
|
||
$codes = DepositChannel::enabledPayChannelCodes($effective);
|
||
if ($codes === []) {
|
||
$where[] = [$mainShort . '.pay_channel', '=', '__no_pay_channel__'];
|
||
|
||
return;
|
||
}
|
||
$where[] = [$mainShort . '.pay_channel', 'in', $codes];
|
||
}
|
||
}
|