|
@ -153,11 +153,11 @@ public class SendNews {
|
|
|
return json;
|
|
|
}
|
|
|
|
|
|
public static String sendNews(String accessToken) throws Exception {
|
|
|
public static void sendNews(String accessToken,List<String> openIds) throws Exception {
|
|
|
// 配置信息
|
|
|
Properties systemConf = SystemConf.getInstance().getSystemProperties();
|
|
|
//本地上传图片的路径
|
|
|
/*String renewPath = systemConf.getProperty("patient_sign_again_pic_url");
|
|
|
//本地上传图片的路径及跳转路径
|
|
|
String renewPath = systemConf.getProperty("patient_sign_again_pic_url");
|
|
|
String renewUrl = systemConf.getProperty("patient_sign_again_url");
|
|
|
String signPath = systemConf.getProperty("doctor_qrcode_pic_url");
|
|
|
String signUrl = systemConf.getProperty("doctor_subscribe_url");
|
|
@ -196,22 +196,14 @@ public class SendNews {
|
|
|
|
|
|
JSONObject news = new JSONObject();
|
|
|
JSONObject mapnews = new JSONObject();
|
|
|
mapnews.put("media_id", new JSONObject(media).get("media_id"));*/
|
|
|
mapnews.put("media_id", new JSONObject(media).get("media_id"));
|
|
|
|
|
|
/* String sql = "select distinct p.openid from Patient p where p.openid is not null and p.openid <> '' ";
|
|
|
JdbcTemplate jdbcTemplate = new JdbcTemplate();
|
|
|
List<String> openIds = jdbcTemplate.queryForList(sql, String.class);*/
|
|
|
|
|
|
// List<String> openIds = patientDao.findOpenids();
|
|
|
|
|
|
/* news.put("touser", openIds);
|
|
|
news.put("touser", openIds);
|
|
|
news.put("mpnews", mapnews);
|
|
|
news.put("msgtype", "mpnews");
|
|
|
news.put("send_ignore_reprint", 1);
|
|
|
|
|
|
SendNews.sendNewspMessage(accessToken, groupUrl, news);*/
|
|
|
return null;
|
|
|
|
|
|
SendNews.sendNewspMessage(accessToken, groupUrl, news);
|
|
|
}
|
|
|
|
|
|
|