|
|
|
|
@ -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']) {
|
|
|
|
|
|