MCPcopy Create free account
hub / github.com/OreosLab/bili / MangaSign

Class MangaSign

src/main/java/top/misec/task/MangaSign.java:16–36  ·  view source on GitHub ↗

漫画签到. @author @JunzhouLiu @Kurenai @since 2020-11-22 5:22

Source from the content-addressed store, hash-verified

14 */
15
16@Slf4j
17public class MangaSign implements Task {
18 @Override
19 public void run() {
20
21 String platform = ConfigLoader.helperConfig.getTaskConfig().getDevicePlatform();
22 String requestBody = "platform=" + platform;
23 JsonObject result = HttpUtils.doPost(ApiList.MANGA, requestBody);
24
25 if (result == null) {
26 log.info("哔哩哔哩漫画已经签到过了");
27 } else {
28 log.info("完成漫画签到");
29 }
30 }
31
32 @Override
33 public String getName() {
34 return "漫画签到";
35 }
36}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…