From 56f6139bd1605c23ee1c67c94ca9bbbcac220898 Mon Sep 17 00:00:00 2001 From: zpc Date: Sun, 14 Sep 2025 03:01:27 +0800 Subject: [PATCH] 321 --- CoreCms.Net.Web.WebApi/Controllers/SQController.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CoreCms.Net.Web.WebApi/Controllers/SQController.cs b/CoreCms.Net.Web.WebApi/Controllers/SQController.cs index cd351ea..54b846d 100644 --- a/CoreCms.Net.Web.WebApi/Controllers/SQController.cs +++ b/CoreCms.Net.Web.WebApi/Controllers/SQController.cs @@ -406,6 +406,15 @@ ISQRoomUnavailableTimesServices sQRoomUnavailableTimesServices public async Task GetReservationRoomList([FromQuery] long startTime, [FromQuery] long endTime) { + if (startTime == 0 || endTime == 0) + { + return new WebApiDto() + { + Code = 500, + Data = null, + Msg = "参数错误" + }; + } // 时间戳转DateTime var start = DateTimeOffset.FromUnixTimeSeconds(startTime).DateTime; var end = DateTimeOffset.FromUnixTimeSeconds(endTime).DateTime;