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