From f912a0373da5b9af18c43f1c410f53ab16cfd2b1 Mon Sep 17 00:00:00 2001 From: wangxiaoxian <1094175543@qq.com> Date: Tue, 3 Mar 2026 16:08:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BC=E9=87=91=E4=B8=8D=E6=98=AF=E5=BF=85?= =?UTF-8?q?=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/rentalController.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/controllers/rentalController.js b/controllers/rentalController.js index eb11886..a852e83 100644 --- a/controllers/rentalController.js +++ b/controllers/rentalController.js @@ -195,9 +195,6 @@ const createRental = async (req, res) => { if (!body.rent) { return res.status(400).json({ error: '缺少租金' }); } - if (!body.deposit) { - return res.status(400).json({ error: '缺少押金' }); - } // 转换roomId为整数类型 const parsedRoomId = parseInt(body.roomId);