正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -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); |
| 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); |
| 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); |
-
请 注册 或 登录 后发表评论