作者 zhl

GEO按照项目频率获取结果

@@ -43,12 +43,6 @@ class GeoQuestionRes extends Command @@ -43,12 +43,6 @@ class GeoQuestionRes extends Command
43 */ 43 */
44 public function handle() 44 public function handle()
45 { 45 {
46 - $project_id = GeoQuestion::where(['status' => GeoQuestion::STATUS_OPEN])->where('next_time', '<=', date('Y-m-d', strtotime('+2 day')))->value('project_id');  
47 - $ids = GeoQuestion::where(['project_id' => $project_id, 'status' => GeoQuestion::STATUS_OPEN])->where('current_time', '<>', date('Y-m-d', strtotime('-1 day')))->pluck('id');  
48 - foreach ($ids as $id) {  
49 - dd($id);  
50 - }  
51 - dd(1);  
52 while (true) { 46 while (true) {
53 $task_id = $this->getTaskId(); 47 $task_id = $this->getTaskId();
54 if (empty($task_id)) { 48 if (empty($task_id)) {