|
|
@@ -97,13 +97,13 @@ class ProductController extends BaseController
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- $status = Yii::$app->request->get('status', 0);
|
|
|
- if (!empty($status)) {
|
|
|
+ $status = Yii::$app->request->get('status', '');
|
|
|
+ if (is_numeric($status)) {
|
|
|
$where['status'] = $status;
|
|
|
}
|
|
|
|
|
|
$delStatus = Yii::$app->request->get('delStatus', '');
|
|
|
- if (strlen($delStatus) > 0 && is_numeric($delStatus)) {
|
|
|
+ if (is_numeric($delStatus)) {
|
|
|
$where['delStatus'] = $delStatus;
|
|
|
}
|
|
|
|