feat: add fnOS packaging, storage workflows and release pipeline
This commit is contained in:
@@ -16,6 +16,7 @@ namespace dy.net.job
|
||||
private readonly DouyinHttpClientService _douyinService;
|
||||
private readonly DouyinFollowService _followService;
|
||||
private readonly DouyinCommonService _douyinCommonService;
|
||||
private readonly DouyinLiveStatusService _douyinLiveStatusService;
|
||||
|
||||
// 常量定义
|
||||
private const string DEFAULT_FOLLOW_COUNT = "20";
|
||||
@@ -31,13 +32,15 @@ namespace dy.net.job
|
||||
DouyinHttpClientService douyinService,
|
||||
DouyinFollowService followService,
|
||||
DouyinCommonService douyinCommonService,
|
||||
DouyinCollectCateService douyinCollectCateService)
|
||||
DouyinCollectCateService douyinCollectCateService,
|
||||
DouyinLiveStatusService douyinLiveStatusService)
|
||||
{
|
||||
_dyCookieService = dyCookieService;
|
||||
_douyinService = douyinService;
|
||||
_followService = followService;
|
||||
_douyinCommonService = douyinCommonService;
|
||||
_douyinCollectCateService = douyinCollectCateService;
|
||||
_douyinLiveStatusService = douyinLiveStatusService;
|
||||
}
|
||||
|
||||
public async Task Execute(IJobExecutionContext context)
|
||||
@@ -239,6 +242,7 @@ namespace dy.net.job
|
||||
if (followList.Any())
|
||||
{
|
||||
var (add, update, succ) = await _followService.Sync(followList, cookie);
|
||||
await _douyinLiveStatusService.ApplyFollowListStatusesAsync(followList, cookie);
|
||||
Log.Debug($"[{cookie.UserName}][{LOG_TAG_FOLLOW}]同步完成 新增:{add} 更新:{update} 成功:{succ} 总关注数:{total},这是同步关注列表,这不是同步视频!!!");
|
||||
}
|
||||
await _douyinCommonService.SetConfigNotFirstRunning();
|
||||
@@ -250,4 +254,4 @@ namespace dy.net.job
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user