master
cody 4 months ago
parent 6512d514e0
commit d09b63d4fa

@ -259,7 +259,7 @@ class SupplyDemandController extends CommonController
$now = date('Y-m-d'); $now = date('Y-m-d');
// 过期数据不能私信 // 过期数据不能私信
$supplyDemand = SupplyDemand::find($all['supply_demand_id']); $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, '该信息已过期,不能私信']); return $this->fail([ResponseCode::ERROR_BUSINESS, '该信息已过期,不能私信']);
} }
if ($dialogue->supply_demand_id != $all['supply_demand_id']) { if ($dialogue->supply_demand_id != $all['supply_demand_id']) {

Loading…
Cancel
Save