|
|
@@ -84,8 +84,6 @@ class Product extends Controller
|
|
|
$is_admin = request('access_token.is_admin', '0');
|
|
|
// 查询条件
|
|
|
$map = [];
|
|
|
- $limit = request('limit', config('page_num', 10));
|
|
|
- $status = request('status', '');
|
|
|
$start_time = request('start_time', '');
|
|
|
$end_time = request('end_time', '');
|
|
|
$product_name = request('product_name', '');
|
|
|
@@ -94,7 +92,7 @@ class Product extends Controller
|
|
|
if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
|
|
|
if ($end_time) $map[] = ['insert_time', '<=', strtotime($end_time)];
|
|
|
// 其他条件
|
|
|
- if (is_numeric($status)) $map[] = ['status', '=', $status];
|
|
|
+ $map[] = ['status', '=', 0];
|
|
|
if ($product_name) $map[] = ['product_name', 'like', "%$product_name%"];
|
|
|
if (is_numeric($platform) || $platform) $map[] = ['platform', 'like', "%$platform%"];
|
|
|
// 权限判断
|