优化数据归属问题

This commit is contained in:
2026-04-23 15:08:37 +08:00
parent 378be9909d
commit 0373234750
29 changed files with 1993 additions and 75 deletions

View File

@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
namespace app\process;
use app\common\service\ChannelSettlementService;
use Workerman\Timer;
/**
* 渠道周期自动结算(每 60 秒扫描一次)
*/
class ChannelAutoSettleTicker
{
public function onWorkerStart(): void
{
Timer::add(60, static function (): void {
ChannelSettlementService::settleAllDueChannels(0);
});
}
}