diff --git a/app/Http/Controllers/Mobile/SupplyDemandController.php b/app/Http/Controllers/Mobile/SupplyDemandController.php index 20e60fa..66dc7ce 100755 --- a/app/Http/Controllers/Mobile/SupplyDemandController.php +++ b/app/Http/Controllers/Mobile/SupplyDemandController.php @@ -259,7 +259,7 @@ class SupplyDemandController extends CommonController $now = date('Y-m-d'); // 过期数据不能私信 $supplyDemand = SupplyDemand::find($all['supply_demand_id']); - if ($supplyDemand->expire_time > $now) { + if (isset($supplyDemand->expire_time) && $supplyDemand->expire_time > $now) { return $this->fail([ResponseCode::ERROR_BUSINESS, '该信息已过期,不能私信']); } if ($dialogue->supply_demand_id != $all['supply_demand_id']) {