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 {