|
|
package com.monitor.javaserver.schedule;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.contants.AlarmGroupContants;
|
|
|
import com.monitor.common.service.AlarmMsgService;
|
|
|
import com.util.GetUsersInfoUtil;
|
|
|
import org.slf4j.Logger;
|
...
|
...
|
@@ -45,7 +44,7 @@ public class WapUrlAlarm |
|
|
@Scheduled(cron = "0 2/10 * * * ?")
|
|
|
public void alarm() {
|
|
|
//发送拦截短信
|
|
|
String mobile_user = "15051889346";//葛正文的电话//getUsersInfoUtil.getMobileByAlarmGroup(AlarmGroupContants.GROUP_NAME_USER_LOGIN);
|
|
|
String mobile_user = getUsersInfoUtil.getMobileByAlarmGroup(AlarmGroupContants.GROUP_NAME_USER_LOGIN);
|
|
|
try {
|
|
|
UriComponentsBuilder builder = UriComponentsBuilder.fromUriString(WATCH_URL);
|
|
|
//WATCH_URL 包含了特殊字符,但不需要编码转义:build(true)
|
...
|
...
|
|