合并分支 'lyh-server' 到 'master'
变更数据 查看合并请求 !2857
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -123,10 +123,10 @@ class TicketUploadDataController extends BaseController | @@ -123,10 +123,10 @@ class TicketUploadDataController extends BaseController | ||
| 123 | if ($this->param['type'] == 1) { | 123 | if ($this->param['type'] == 1) { |
| 124 | //todo::搜索获取分类 | 124 | //todo::搜索获取分类 |
| 125 | $productCateModel = new Category(); | 125 | $productCateModel = new Category(); |
| 126 | - $data = $productCateModel->lists(['title' => ['like','%' . $this->param['search'] . '%']], 1, 20); | 126 | + $data = $productCateModel->lists(['title' => ['like','%' . $this->param['search'] . '%']], 1, 20,'id',['id','title']); |
| 127 | } else { | 127 | } else { |
| 128 | $keywordModel = new Keyword(); | 128 | $keywordModel = new Keyword(); |
| 129 | - $data = $keywordModel->lists(['title' => ['like','%' . $this->param['search'] . '%']], 1, 20); | 129 | + $data = $keywordModel->lists(['title' => ['like','%' . $this->param['search'] . '%']], 1, 20,'id',['id','title']); |
| 130 | } | 130 | } |
| 131 | DB::disconnect('custom_mysql'); | 131 | DB::disconnect('custom_mysql'); |
| 132 | $this->response('success', Code::SUCCESS, $data); | 132 | $this->response('success', Code::SUCCESS, $data); |
| @@ -150,7 +150,7 @@ class TicketUploadDataController extends BaseController | @@ -150,7 +150,7 @@ class TicketUploadDataController extends BaseController | ||
| 150 | ]); | 150 | ]); |
| 151 | ProjectServer::useProject($this->param['project_id']); | 151 | ProjectServer::useProject($this->param['project_id']); |
| 152 | $blogCateModel = new BlogCategory(); | 152 | $blogCateModel = new BlogCategory(); |
| 153 | - $data = $blogCateModel->lists(['name' => ['like' ,'%' . $this->param['search'] . '%']], 1, 20); | 153 | + $data = $blogCateModel->lists(['name' => ['like' ,'%' . $this->param['search'] . '%']], 1, 20,'id',['id','name']); |
| 154 | DB::disconnect('custom_mysql'); | 154 | DB::disconnect('custom_mysql'); |
| 155 | $this->response('success', Code::SUCCESS, $data); | 155 | $this->response('success', Code::SUCCESS, $data); |
| 156 | } | 156 | } |
| @@ -173,7 +173,7 @@ class TicketUploadDataController extends BaseController | @@ -173,7 +173,7 @@ class TicketUploadDataController extends BaseController | ||
| 173 | ]); | 173 | ]); |
| 174 | ProjectServer::useProject($this->param['project_id']); | 174 | ProjectServer::useProject($this->param['project_id']); |
| 175 | $newsCateModel = new NewsCategory(); | 175 | $newsCateModel = new NewsCategory(); |
| 176 | - $data = $newsCateModel->lists(['name' => ['like' , '%' . $this->param['search'] . '%']], 1, 20); | 176 | + $data = $newsCateModel->lists(['name' => ['like' , '%' . $this->param['search'] . '%']], 1, 20,'id',['id','name']); |
| 177 | DB::disconnect('custom_mysql'); | 177 | DB::disconnect('custom_mysql'); |
| 178 | $this->response('success', Code::SUCCESS, $data); | 178 | $this->response('success', Code::SUCCESS, $data); |
| 179 | } | 179 | } |
-
请 注册 或 登录 后发表评论