作者 赵彬吉

update

@@ -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 }