合并分支 'lyh-server' 到 'master'
Lyh server 查看合并请求 !3054
正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -339,7 +339,8 @@ class GeoQuestionRes extends Command | @@ -339,7 +339,8 @@ class GeoQuestionRes extends Command | ||
| 339 | $key = 'geo_task_list'; | 339 | $key = 'geo_task_list'; |
| 340 | $task_id = Redis::rpop($key); | 340 | $task_id = Redis::rpop($key); |
| 341 | if(empty($task_id)){ | 341 | if(empty($task_id)){ |
| 342 | - $project_ids = GeoQuestion::where('status', GeoQuestion::STATUS_OPEN)->where('next_time', '<=', date('Y-m-d'))->orderBy('next_time', 'asc')->groupBy('project_id')->pluck('project_id'); | 342 | + $project_ids = GeoQuestion::where('status', GeoQuestion::STATUS_OPEN)->where('next_time', '<=', date('Y-m-d')) |
| 343 | + ->orderBy('next_time', 'asc')->pluck('project_id')->unique()->values()->toArray(); | ||
| 343 | if(!empty($project_ids)){ | 344 | if(!empty($project_ids)){ |
| 344 | foreach ($project_ids as $project_id){ | 345 | foreach ($project_ids as $project_id){ |
| 345 | $ids = GeoQuestion::where(['project_id' => $project_id, 'status' => GeoQuestion::STATUS_OPEN])->where('next_time', '<=', date('Y-m-d'))->pluck('id'); | 346 | $ids = GeoQuestion::where(['project_id' => $project_id, 'status' => GeoQuestion::STATUS_OPEN])->where('next_time', '<=', date('Y-m-d'))->pluck('id'); |
-
请 注册 或 登录 后发表评论