Files
zyt/server/app/command/DesktopSessionSettle.php
T
2026-11-26 15:46:20 +08:00

24 lines
596 B
PHP

<?php
declare(strict_types=1);
namespace app\command;
use app\adminapi\service\DesktopSessionService;
use think\console\Command;
use think\console\Input;
use think\console\Output;
final class DesktopSessionSettle extends Command
{
protected function configure()
{
$this->setName('desktop-session:settle')->setDescription('结算已到期的医生工作站登录记录');
}
protected function execute(Input $input, Output $output): int
{
$output->writeln('已结算工作站会话 ' . DesktopSessionService::settleDue() . ' 条');
return 0;
}
}