作者 赵彬吉

update

... ... @@ -37,6 +37,7 @@ class SyncSubmitTask extends Command
$this->output('任务' . $task_id . '开始');
$time = time();
DB::enableQueryLog(); //启用查询日志
$task_info = SyncSubmitTaskModel::find($task_id);
... ... @@ -77,6 +78,8 @@ class SyncSubmitTask extends Command
//数据库查询
$this->output('任务用时:' .$use_time . ' | ' . json_encode(DB::getQueryLog(),JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));
}
//清除之前的查询日志
DB::flushQueryLog();
}
}
... ...