diff --git a/src/cron/command/MySql.php b/src/cron/command/MySql.php index 28533f0..dd3452f 100644 --- a/src/cron/command/MySql.php +++ b/src/cron/command/MySql.php @@ -54,7 +54,7 @@ protected function execute(Input $input, Output $output) public function add_xcron($title, $task, $data = [], $exptime=null) { - return Db::name($this->config['table'])->insert([ + return Db::table($this->config['table'])->insert([ 'title' => $title, 'task' => $task, 'data' => json_encode($data, JSON_UNESCAPED_UNICODE),