From 4b069089ecec51b1fd5527776dc7ddeab9cbabaa Mon Sep 17 00:00:00 2001 From: zpc Date: Mon, 8 Dec 2025 01:08:40 +0800 Subject: [PATCH] eqw --- .../Controllers/SQController.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/server/CoreCms.Net.Web.WebApi/Controllers/SQController.cs b/server/CoreCms.Net.Web.WebApi/Controllers/SQController.cs index 16e3fda..202c2ac 100644 --- a/server/CoreCms.Net.Web.WebApi/Controllers/SQController.cs +++ b/server/CoreCms.Net.Web.WebApi/Controllers/SQController.cs @@ -658,6 +658,7 @@ public class SQController : ControllerBase remarks = "", status = 0, title = dto.title, + is_solo_mode = dto.player_count == 1, // 其他字段可根据需要补充 }; @@ -682,7 +683,7 @@ public class SQController : ControllerBase status = 0, is_refund = dto.deposit_fee > 0 ? 1 : 0, important_data = dto.important_data, - paymentId = paymentId + paymentId = paymentId, }; await _SQReservationParticipantsServices.InsertAsync(participant); @@ -1316,8 +1317,8 @@ public class SQController : ControllerBase status = 1 }, it => it.reservation_id == dto.reservation_id && it.status == 0 && falseUserIds.Contains(it.user_id)); - //如果有鸽子费,需要将鸽子费平分到 已到的用户,添加到收益中 - + //如果有鸽子费,需要将鸽子费平分到 已到的用户,添加到收益中 + //_sQReservationReputationServices. //AddReputationAsync(falseUserIds, -5, $"未按时赴约,扣除5点信誉分(预约ID:{dto.reservation_id})"); //添加鸽子次数 @@ -1392,7 +1393,7 @@ public class SQController : ControllerBase it => new SQReservationParticipants { is_arrive = 1, - check_reservation=DateTime.Now + check_reservation = DateTime.Now }, it => it.reservation_id == dto.reservation_id && it.status == 0 && it.user_id == userId); @@ -1548,7 +1549,7 @@ OFFSET {(pageIndex - 1) * pageSize} ROWS FETCH NEXT {pageSize} ROWS ONLY"; var weekDay = date.ToString("dddd", new System.Globalization.CultureInfo("zh-CN")); var dateText = i == 0 ? "今天" : i == 1 ? "明天" : i == 2 ? "后天" : date.ToString("ddd", new System.Globalization.CultureInfo("zh-CN")); - // 转换为 DateTimeOffset 并指定为北京时间 + // 转换为 DateTimeOffset 并指定为北京时间 var beijingOffset = new DateTimeOffset(date, chinaTimeZone.GetUtcOffset(date)); dates.Add(new SQAvailableDateDto { @@ -1937,7 +1938,7 @@ OFFSET {(pageIndex - 1) * pageSize} ROWS FETCH NEXT {pageSize} ROWS ONLY"; // 从配置中获取收益规则说明 var allConfigs = await _settingServices.GetConfigDictionaries(); var content = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.EarningsRule); - + // 如果配置为空,返回默认内容 if (string.IsNullOrWhiteSpace(content)) {