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);