diff --git a/app/Http/Controllers/Mobile/SupplyDemandController.php b/app/Http/Controllers/Mobile/SupplyDemandController.php index 61a9199..d01220d 100755 --- a/app/Http/Controllers/Mobile/SupplyDemandController.php +++ b/app/Http/Controllers/Mobile/SupplyDemandController.php @@ -256,7 +256,9 @@ class SupplyDemandController extends CommonController 'supply_demand_id' => $all['supply_demand_id'] ?? 0 ]); // 增加联系次数 - SupplyDemand::where('id', $all['supply_demand_id'])->increment('contact_count'); + if (isset($all['supply_demand_id'])) { + SupplyDemand::where('id', $all['supply_demand_id'])->increment('contact_count'); + } } if (isset($all['supply_demand_id'])) { $now = date('Y-m-d');