作者 lyh

变更数据

@@ -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);