Skip to content

Commit

Permalink
拆分出投币领域服务
Browse files Browse the repository at this point in the history
  • Loading branch information
RayWangQvQ committed Dec 15, 2020
1 parent d6cb153 commit afb879d
Show file tree
Hide file tree
Showing 9 changed files with 401 additions and 326 deletions.
5 changes: 4 additions & 1 deletion src/Ray.BiliBiliTool.Application/DailyTaskAppService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class DailyTaskAppService : IDailyTaskAppService
private readonly ILogger<DailyTaskAppService> _logger;
private readonly IAccountDomainService _loginDomainService;
private readonly IVideoDomainService _videoDomainService;
private readonly IDonateCoinDomainService _donateCoinDomainService;
private readonly IMangaDomainService _mangaDomainService;
private readonly ILiveDomainService _liveDomainService;
private readonly IVipPrivilegeDomainService _vipPrivilegeDomainService;
Expand All @@ -24,6 +25,7 @@ public DailyTaskAppService(
ILogger<DailyTaskAppService> logger,
IAccountDomainService loginDomainService,
IVideoDomainService videoDomainService,
IDonateCoinDomainService donateCoinDomainService,
IMangaDomainService mangaDomainService,
ILiveDomainService liveDomainService,
IVipPrivilegeDomainService vipPrivilegeDomainService,
Expand All @@ -33,6 +35,7 @@ public DailyTaskAppService(
_logger = logger;
_loginDomainService = loginDomainService;
_videoDomainService = videoDomainService;
_donateCoinDomainService = donateCoinDomainService;
_mangaDomainService = mangaDomainService;
_liveDomainService = liveDomainService;
_vipPrivilegeDomainService = vipPrivilegeDomainService;
Expand Down Expand Up @@ -107,7 +110,7 @@ private void WatchAndShareVideo(DailyTaskInfo dailyTaskInfo)
[TaskInterceptor("投币", false)]
private void AddCoinsForVideo()
{
_videoDomainService.AddCoinsForVideo();
_donateCoinDomainService.AddCoinsForVideo();
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<Authors>Ray</Authors>
<Version>1.0.16</Version>
<Version>1.0.17</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
Loading

0 comments on commit afb879d

Please sign in to comment.