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

Method run

src/main/java/top/misec/task/MangaSign.java:18–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

doPostMethod · 0.95

Tested by

no test coverage detected