修改配置文件,增加公众号接口URL配置项。
This commit is contained in:
@@ -5,6 +5,7 @@ import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.util.Vector;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
|
||||
|
||||
@@ -110,9 +111,24 @@ public class WeatherDisasterNotifyConfig
|
||||
this.notifyStuffs = notifyStuffs;
|
||||
}
|
||||
|
||||
public String getWechatOfficalAccountURL()
|
||||
{
|
||||
return wechatOfficalAccountURL;
|
||||
}
|
||||
|
||||
public void setWechatOfficalAccountURL( String wechatOfficalAccountURL )
|
||||
{
|
||||
this.wechatOfficalAccountURL = wechatOfficalAccountURL;
|
||||
}
|
||||
|
||||
private String title;
|
||||
private String key;
|
||||
private String queryUrl;
|
||||
|
||||
@JsonProperty("wechat_officalaccount_url")
|
||||
private String wechatOfficalAccountURL;
|
||||
private Vector<City> cities;
|
||||
private Vector<CpicxmStuff> notifyStuffs;
|
||||
|
||||
|
||||
}
|
||||
|
@@ -13,6 +13,7 @@ public class sendMessageTest
|
||||
|
||||
try
|
||||
{
|
||||
//sendMessage.sendNotifyMessage( url, "警报", "警报标题", "警报内容!" );
|
||||
sendMessage.sendNotifyMessage( url, "警报", "警报标题", "警报内容!" );
|
||||
}
|
||||
catch ( Exception error )
|
||||
|
Reference in New Issue
Block a user