修改配置文件,增加公众号接口URL配置项。

This commit is contained in:
2022-04-19 15:31:34 +08:00
parent 216c6926ac
commit 130f237af2
4 changed files with 19 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -13,6 +13,7 @@ public class sendMessageTest
try
{
//sendMessage.sendNotifyMessage( url, "警报", "警报标题", "警报内容!" );
sendMessage.sendNotifyMessage( url, "警报", "警报标题", "警报内容!" );
}
catch ( Exception error )