正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -72,10 +72,10 @@ class SyncSubmitTask extends Command | @@ -72,10 +72,10 @@ class SyncSubmitTask extends Command | ||
| 72 | $this->output('任务失败:' . $e->getMessage()); | 72 | $this->output('任务失败:' . $e->getMessage()); |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | - | ||
| 76 | - if((time() - $time) > 1){ | 75 | + $use_time = time() - $time; |
| 76 | + if($use_time > 1){ | ||
| 77 | //数据库查询 | 77 | //数据库查询 |
| 78 | - $this->output('任务用时:' . json_encode(DB::getQueryLog())); | 78 | + $this->output('任务用时:' .$use_time . ' | ' . json_encode(DB::getQueryLog(),JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE)); |
| 79 | } | 79 | } |
| 80 | } | 80 | } |
| 81 | } | 81 | } |
-
请 注册 或 登录 后发表评论