Files
mier-php/application/common/command/RoomWages.php
2025-08-11 10:22:05 +08:00

39 lines
891 B
PHP

<?php
namespace app\common\command;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use app\admin\model\ReloadDb;
class RoomWages extends Command
{
protected function configure()
{
$this->setName('rooom-wages')
->setDescription('房间工资结算'); //
}
/**
* 清理过期装扮
* @param Input $input
* @param Output $output
* @return int|void|null
* @throws \think\Exception
* @throws \think\exception\PDOException
*/
protected function execute(Input $input, Output $output)
{
// set_time_limit(0);
ini_set ('memory_limit', '128M');
while (true) {
ReloadDb::init();
model('api/RoomWages')->batch_give_room_subsidy();
echo '房间工资监控!'.date('Y-m-d H:i:s').PHP_EOL;;
sleep(3);
}
}
}