修复翻译BUG
This commit is contained in:
@@ -95,7 +95,7 @@ class ChannelSettlementService
|
||||
return ['ok' => false, 'msg' => '当前流程为超管结算后自动发放,渠道管理员无需二次结算'];
|
||||
}
|
||||
|
||||
public static function settleAllDueChannels(int $operatorAdminId): array
|
||||
public static function settleAllDueChannels(int $operatorAdminId, bool $respectCycle = true): array
|
||||
{
|
||||
$channels = Db::name('channel')->where('status', 1)->select()->toArray();
|
||||
$ok = 0;
|
||||
@@ -106,7 +106,7 @@ class ChannelSettlementService
|
||||
if ($channelId <= 0) {
|
||||
continue;
|
||||
}
|
||||
if (!self::isChannelDueForAutoSettle($channel, $now)) {
|
||||
if ($respectCycle && !self::isChannelDueForAutoSettle($channel, $now)) {
|
||||
continue;
|
||||
}
|
||||
$res = self::settleBySuperAdmin($channelId, $operatorAdminId, '周期自动结算', true);
|
||||
|
||||
Reference in New Issue
Block a user