作者 lyh

变更数据

... ... @@ -123,10 +123,10 @@ class TicketUploadDataController extends BaseController
if ($this->param['type'] == 1) {
//todo::搜索获取分类
$productCateModel = new Category();
$data = $productCateModel->lists(['title' => ['like' => '%' . $this->param['search'] . '%']], 1, 20);
$data = $productCateModel->lists(['title' => ['like','%' . $this->param['search'] . '%']], 1, 20);
} else {
$keywordModel = new Keyword();
$data = $keywordModel->lists(['title' => ['like' => '%' . $this->param['search'] . '%']], 1, 20);
$data = $keywordModel->lists(['title' => ['like','%' . $this->param['search'] . '%']], 1, 20);
}
DB::disconnect('custom_mysql');
$this->response('success', Code::SUCCESS, $data);
... ...