Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions src/DFApp.Application/Background/LotteryResultTimer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,25 @@ public LotteryResultTimer(IRepository<LotteryResult, long> lotteryResultReposito

public override async Task Execute(IJobExecutionContext context)
{
await StartWork(LotteryConst.SSQ, LotteryConst.SSQ_ENG, LotteryConst.SSQ_START_CODE);
await StartWork(LotteryConst.KL8, LotteryConst.KL8_ENG, LotteryConst.KL8_STRAT_CODE);
// 处理双色球(SSQ),失败不影响其他彩票类型
try
{
await StartWork(LotteryConst.SSQ, LotteryConst.SSQ_ENG, LotteryConst.SSQ_START_CODE);
}
catch (Exception ex)
{
Logger.LogError(ex, $"处理双色球(SSQ)时发生异常,将继续处理其他彩票类型");
}

// 处理快乐8(KL8),失败不影响其他彩票类型
try
{
await StartWork(LotteryConst.KL8, LotteryConst.KL8_ENG, LotteryConst.KL8_STRAT_CODE);
}
catch (Exception ex)
{
Logger.LogError(ex, $"处理快乐8(KL8)时发生异常,将继续处理其他彩票类型");
}
}

private async Task StartWork(string lotteryType, string lotteryTypeEng, string code)
Expand Down
Loading