eqw
This commit is contained in:
parent
192bc34c1a
commit
4b069089ec
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user