正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -779,15 +779,15 @@ class ProjectController extends BaseController | @@ -779,15 +779,15 @@ class ProjectController extends BaseController | ||
| 779 | * @author zbj | 779 | * @author zbj |
| 780 | * @date 2023/9/11 | 780 | * @date 2023/9/11 |
| 781 | */ | 781 | */ |
| 782 | - public function getProjectByChannel(){ | 782 | + public function getProjectByChannel(Request $request){ |
| 783 | $id = $this->param['id'] ?? ''; | 783 | $id = $this->param['id'] ?? ''; |
| 784 | $notice_order_id = $this->param['notice_order_id'] ?? ''; | 784 | $notice_order_id = $this->param['notice_order_id'] ?? ''; |
| 785 | $source_id = $this->param['channel_id'] ?? 0; //原系统渠道id | 785 | $source_id = $this->param['channel_id'] ?? 0; //原系统渠道id |
| 786 | $size = $this->param['page_size'] ?? 20; | 786 | $size = $this->param['page_size'] ?? 20; |
| 787 | $type = $this->param['type'] ?? ''; | 787 | $type = $this->param['type'] ?? ''; |
| 788 | $company = $this->param['company'] ?? ''; | 788 | $company = $this->param['company'] ?? ''; |
| 789 | - $order_by_field = trim($this->param['order_by_field']) ?? 'id'; | ||
| 790 | - $order_by_sort = trim($this->param['order_by_sort']) ?? 'desc'; | 789 | + $order_by_field = $request->input('order_by_field', 'id'); |
| 790 | + $order_by_sort = $request->input('order_by_sort', 'desc'); | ||
| 791 | 791 | ||
| 792 | if(!$source_id && !$id){ | 792 | if(!$source_id && !$id){ |
| 793 | $this->response('参数异常',Code::SYSTEM_ERROR); | 793 | $this->response('参数异常',Code::SYSTEM_ERROR); |
-
请 注册 或 登录 后发表评论