消息推送 . @author @JunzhouLiu @Kurenai @since 2020/10/21 17:39
| 14 | */ |
| 15 | |
| 16 | @Slf4j |
| 17 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…