Commit a6c412dbfe66288b649e617c65dbdb714dfd4b30
1 parent
569520e6
2022年7月1日19:02:10 每天11点, 更新__NS_sig3签名信息
Showing
1 changed file
with
11 additions
and
0 deletions
src/main/java/cn/fw/freya/task/InitTask.java
1 | 1 | package cn.fw.freya.task; |
2 | 2 | |
3 | 3 | import cn.fw.freya.service.CommonBizService; |
4 | +import cn.fw.freya.service.crawl.impl.KuaiShouCrawl; | |
4 | 5 | import lombok.RequiredArgsConstructor; |
5 | 6 | import lombok.extern.slf4j.Slf4j; |
6 | 7 | import org.springframework.scheduling.annotation.Scheduled; |
... | ... | @@ -18,6 +19,7 @@ import org.springframework.stereotype.Component; |
18 | 19 | public class InitTask { |
19 | 20 | |
20 | 21 | private final CommonBizService commonBizService; |
22 | + private final KuaiShouCrawl kuaiShouCrawl; | |
21 | 23 | |
22 | 24 | /** |
23 | 25 | * 每天12点30分初始化, 同步账号, 删除昨天视频, 直播数据 |
... | ... | @@ -30,4 +32,13 @@ public class InitTask { |
30 | 32 | initResult = commonBizService.init(); |
31 | 33 | } |
32 | 34 | } |
35 | + | |
36 | + /** | |
37 | + * 每天11点, 抽取快手__NS_sig3签名信息, 方便后续调接口 | |
38 | + */ | |
39 | + @Scheduled(cron = "0 00 11 * * *") | |
40 | + public void getSig3Msg() { | |
41 | + kuaiShouCrawl.setSig3Map(); | |
42 | + } | |
43 | + | |
33 | 44 | } | ... | ... |