完成基本功能。
This commit is contained in:
parent
eb7f53ad4b
commit
c0443d3a8b
@ -2,7 +2,7 @@
|
||||
* @Author: Kane
|
||||
* @Date: 2022-04-22 10:53:49
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2022-05-05 16:51:11
|
||||
* @LastEditTime: 2022-05-06 11:08:07
|
||||
* @FilePath: \DisasterWarning\src\main\java\AppMain.java
|
||||
* @Description: 和风天气预警推送厦门太保公众号主程序!
|
||||
*
|
||||
@ -92,8 +92,7 @@ public class AppMain
|
||||
logger.log( Level.INFO, "{0}天气预警,日志发送成功。", new Object[]
|
||||
{ city.getCityName()} );
|
||||
|
||||
sendMessage.saveWeatherDisasterWarning( city.getCityName(),
|
||||
warning.getWarning().get( 0 ) );
|
||||
sendMessage.saveWeatherDisasterWarning( city.getCityName(), warning );
|
||||
}
|
||||
catch ( IOException error )
|
||||
{
|
||||
|
@ -2,7 +2,7 @@
|
||||
* @Author: Kane
|
||||
* @Date: 2022-04-22 10:53:49
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2022-05-05 17:42:33
|
||||
* @LastEditTime: 2022-05-06 11:14:32
|
||||
* @FilePath: \DisasterWarning\src\main\java\com\cpic\xim\wechat\officalAccount\sendMessage.java
|
||||
* @Description: 用来推送公众号消息的程序库。
|
||||
*
|
||||
@ -18,7 +18,6 @@ import java.io.IOException;
|
||||
import java.net.MalformedURLException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Vector;
|
||||
import java.util.logging.*;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.DriverManager;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* @Author: Kane
|
||||
* @Date: 2022-04-22 10:53:49
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2022-05-05 17:53:10
|
||||
* @LastEditTime: 2022-05-06 11:14:35
|
||||
* @FilePath: \DisasterWarning\src\test\java\com\cpic\xim\wechat\officalAccount\sendMessageTest.java
|
||||
* @Description:
|
||||
*
|
||||
@ -16,8 +16,7 @@ import org.junit.Test;
|
||||
import static org.junit.Assert.*;
|
||||
import com.cpic.xim.httpUtil.*;
|
||||
import java.io.IOException;
|
||||
import java.sql.SQLException;
|
||||
//import java.text.SimpleDateFormat;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
@ -78,13 +77,6 @@ public class sendMessageTest
|
||||
|
||||
|
||||
sendMessage.saveWeatherDisasterWarning( city, warning );
|
||||
|
||||
|
||||
|
||||
// SimpleDateFormat format = new SimpleDateFormat( "yyyy-MM-dd HH:mm" );
|
||||
// String putTime = format.format( warning.getUpdateTime() );
|
||||
|
||||
// sendMessage.sendWeatherDisasterWarning( url, warning );
|
||||
}
|
||||
catch ( Exception error )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user