diff --git a/app/Http/Controllers/Mobile/SupplyDemandController.php b/app/Http/Controllers/Mobile/SupplyDemandController.php index b6a276f..9e398f3 100755 --- a/app/Http/Controllers/Mobile/SupplyDemandController.php +++ b/app/Http/Controllers/Mobile/SupplyDemandController.php @@ -53,7 +53,7 @@ class SupplyDemandController extends CommonController $query->select('id', 'nickname', 'name', 'headimgurl', 'username'); } ])->where(function ($query) use ($all, $status) { - if($status){ + if ($status != -1) { $query->where('status', $status); } if (isset($all['type'])) {