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

Class ServerPush

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

消息推送 . @author @JunzhouLiu @Kurenai @since 2020/10/21 17:39

Source from the content-addressed store, hash-verified

14 */
15
16@Slf4j
17public class ServerPush {
18
19 public static void doServerPush() {
20 PushConfig.PushInfo pushInfo = ConfigLoader.helperConfig.getPushConfig().getPushInfo();
21
22 if (null != pushInfo) {
23 pushInfo.getTarget().doPush(pushInfo.getMetaInfo(), ReadFileUtils.readFile(Constant.LOG_FILE_PATH));
24 } else {
25 log.info("未配置正确的ftKey和chatId,本次执行将不推送日志");
26 }
27 }
28}

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…