合并分支 'zhl' 到 'master'
Zhl 查看合并请求 !19
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -582,8 +582,8 @@ class ProjectController extends BaseController | @@ -582,8 +582,8 @@ class ProjectController extends BaseController | ||
| 582 | if(!$channel){ | 582 | if(!$channel){ |
| 583 | $this->response('渠道不存在',Code::SYSTEM_ERROR); | 583 | $this->response('渠道不存在',Code::SYSTEM_ERROR); |
| 584 | } | 584 | } |
| 585 | - if (empty($id) || FALSE == is_array($id)) | ||
| 586 | - $id = []; | 585 | + if ($id && FALSE == is_array($id)) |
| 586 | + $id = explode(',', $id); | ||
| 587 | 587 | ||
| 588 | $data = Project::with(['deploy_build', 'deploy_optimize', 'online_check'])->where(['channel->channel_id' => $channel->id, 'delete_status' => 0])->where(function ($query) use ($type, $company, $id){ | 588 | $data = Project::with(['deploy_build', 'deploy_optimize', 'online_check'])->where(['channel->channel_id' => $channel->id, 'delete_status' => 0])->where(function ($query) use ($type, $company, $id){ |
| 589 | if ($type) { | 589 | if ($type) { |
-
请 注册 或 登录 后发表评论