正在显示
1 个修改的文件
包含
9 行增加
和
3 行删除
| @@ -108,12 +108,18 @@ class SuppliersController extends BaseController | @@ -108,12 +108,18 @@ class SuppliersController extends BaseController | ||
| 108 | $api_url = 'api/company_linked'; | 108 | $api_url = 'api/company_linked'; |
| 109 | $action_name = 'company_linked'; | 109 | $action_name = 'company_linked'; |
| 110 | $param = [ | 110 | $param = [ |
| 111 | - 'domain'=>$this->param['domain'] ?? '', | ||
| 112 | - 'keyword'=>$this->param['keyword'] ?? '', | ||
| 113 | - 'position'=>$this->param['position'] ?? '', | ||
| 114 | 'page'=>$this->page, | 111 | 'page'=>$this->page, |
| 115 | 'page_size'=>$this->row, | 112 | 'page_size'=>$this->row, |
| 116 | ]; | 113 | ]; |
| 114 | + if(!empty($this->param['domain'])){ | ||
| 115 | + $param['domain'] = $this->param['domain']; | ||
| 116 | + } | ||
| 117 | + if(!empty($this->param['keyword'])){ | ||
| 118 | + $param['keyword'] = $this->param['keyword']; | ||
| 119 | + } | ||
| 120 | + if(!empty($this->param['domain'])){ | ||
| 121 | + $param['position'] = $this->param['position']; | ||
| 122 | + } | ||
| 117 | $res = $this->_action($api_url,$action_name,$param); | 123 | $res = $this->_action($api_url,$action_name,$param); |
| 118 | $this->response('success',Code::SUCCESS,$res); | 124 | $this->response('success',Code::SUCCESS,$res); |
| 119 | } | 125 | } |
-
请 注册 或 登录 后发表评论