diff --git a/app/Http/Controllers/Admin/SupplyDemandController.php b/app/Http/Controllers/Admin/SupplyDemandController.php index e29ba42..3e40c56 100755 --- a/app/Http/Controllers/Admin/SupplyDemandController.php +++ b/app/Http/Controllers/Admin/SupplyDemandController.php @@ -373,7 +373,7 @@ class SupplyDemandController extends BaseController $dialogue = Dialogue::where(function ($query) use ($all) { $query->where('user_id', $all['user_id'])->where('to_user_id', $all['to_user_id']); })->orWhere(function ($query) use ($all) { - $query->where('user_id1', $all['to_user_id'])->where('to_user_id', $all['user_id']); + $query->where('user_id', $all['to_user_id'])->where('to_user_id', $all['user_id']); })->first(); if (empty($dialogue)) { return $this->fail([ResponseCode::ERROR_BUSINESS, '会话不存在']);