From 46e63fdd54218f8a76c8e42a1fe43720697cfa50 Mon Sep 17 00:00:00 2001 From: LittleFish-233 Date: Wed, 26 Jul 2023 08:16:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E5=A5=96=E4=B8=8D=E5=86=8D=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E7=BB=93=E6=9D=9F=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CnGalWebSite.APIServer/Controllers/LotteryAPIController.cs | 2 +- .../Component/Lotteries/MainPage/ExtraButtonCard.razor | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CnGalWebSite/CnGalWebSite.APIServer/Controllers/LotteryAPIController.cs b/CnGalWebSite/CnGalWebSite.APIServer/Controllers/LotteryAPIController.cs index 276648643..a100fabf6 100644 --- a/CnGalWebSite/CnGalWebSite.APIServer/Controllers/LotteryAPIController.cs +++ b/CnGalWebSite/CnGalWebSite.APIServer/Controllers/LotteryAPIController.cs @@ -716,7 +716,7 @@ public async Task> ParticipateInLottery(ParticipateInLotter public async Task> DrawLotteryAsync(ManualLotteryModel model) { var time = DateTime.Now.ToCstTime(); - if (await _lotteryRepository.GetAll().AnyAsync(s => s.Id == model.LotteryId && s.EndTime < time) == false) + if (await _lotteryRepository.GetAll().AnyAsync(s => s.Id == model.LotteryId /*&& s.EndTime < time*/) == false) { return new Result { Successful = false, Error = "未找到该抽奖或抽奖未结束" }; } diff --git a/CnGalWebSite/CnGalWebSite.Shared/Component/Lotteries/MainPage/ExtraButtonCard.razor b/CnGalWebSite/CnGalWebSite.Shared/Component/Lotteries/MainPage/ExtraButtonCard.razor index fcf5c2660..7d5231e6f 100644 --- a/CnGalWebSite/CnGalWebSite.Shared/Component/Lotteries/MainPage/ExtraButtonCard.razor +++ b/CnGalWebSite/CnGalWebSite.Shared/Component/Lotteries/MainPage/ExtraButtonCard.razor @@ -4,7 +4,7 @@
- @if (Model.Type == LotteryType.Manual && Model.IsEnd == false&& Model.EndTime < DateTime.Now.ToCstTime()) + @if (Model.Type == LotteryType.Manual && Model.IsEnd == false) { }