| | |
| | | @Component |
| | | @Slf4j |
| | | public class TideUtils { |
| | | private final static String appId = "1205972857687900160"; |
| | | private final static String appId = "1203030075595816960"; |
| | | |
| | | private final static String appSecret = "MgzPMDYwMTIwMjYxNzQ2NDA3OTYGqt"; |
| | | private final static String appSecret = "6g3GMjkxMjIwMjUxNDUzMDY4NzE2aH"; |
| | | |
| | | // 内网地址 |
| | | private final static String ip = "http://10.136.0.8:8083"; |
| | | private final static String ip = "http://58.56.84.138:8083"; |
| | | |
| | | // MD5加密并转换为16进制 |
| | | public static String md5Encryption(String input) { |
| | |
| | | /** |
| | | * 五分钟一次的心跳 |
| | | */ |
| | | @Scheduled(cron = "0 0/5 * * * ?") |
| | | // @Scheduled(cron = "0 0/5 * * * ?") |
| | | public static void heartbeat(){ |
| | | HashMap<String, String> header = getGetHeader(null); |
| | | String url = ip + "/cpn/api/extra/v1/application/heartbeat"; |
| | | String body = HttpRequest.get(url).headerMap(header, false).execute().body(); |
| | | System.out.println(body + "应用心跳执行成功!"); |
| | | log.info("应用心跳执行成功->{}",body); |
| | | } |
| | | |
| | | // 获取token |