From 2788fd0623ac92e1826566b9ee10e19e50e860bd Mon Sep 17 00:00:00 2001 From: zpc Date: Sat, 27 Sep 2025 16:49:57 +0800 Subject: [PATCH] 312 --- .../Controllers/SQController.cs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/CoreCms.Net.Web.WebApi/Controllers/SQController.cs b/CoreCms.Net.Web.WebApi/Controllers/SQController.cs index f016a8e..7239358 100644 --- a/CoreCms.Net.Web.WebApi/Controllers/SQController.cs +++ b/CoreCms.Net.Web.WebApi/Controllers/SQController.cs @@ -550,16 +550,17 @@ public class SQController : ControllerBase } //订单编号 paymentId = imdata["paymentId"].ToString(); - } - if (string.IsNullOrEmpty(paymentId)) - { - return new WebApiDto() + if (string.IsNullOrEmpty(paymentId)) { - Code = 500, - Data = null, - Msg = "生成订单失败!" - }; + return new WebApiDto() + { + Code = 500, + Data = null, + Msg = "生成订单失败!" + }; + } } + // 5. 创建预约记录 var reservation = new SQReservations {