修复翻译BUG

This commit is contained in:
2026-04-23 17:44:10 +08:00
parent f2b4dab54f
commit de3b9ab6bf
6 changed files with 109 additions and 11 deletions

View File

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