|
@@ -22,7 +22,7 @@ class ApiController extends Controller
|
|
if ($q != null) {
|
|
if ($q != null) {
|
|
// 模糊搜索
|
|
// 模糊搜索
|
|
$obj = new DistProduct();
|
|
$obj = new DistProduct();
|
|
- return $obj->model()->where('title', 'like', "%$q%")->where('dist_id', getDistributorId())->paginate(null, ['id', 'title as text']);
|
|
|
|
|
|
+ return $obj->model()->where('title', 'like', "%$q%")->where('dist_id', getDistributorId())->where('status', 1)->paginate(null, ['id', 'title as text']);
|
|
} else {
|
|
} else {
|
|
// 获取最新的N个
|
|
// 获取最新的N个
|
|
$selectOptionsNew = DistProduct::selectOptionsNew();
|
|
$selectOptionsNew = DistProduct::selectOptionsNew();
|