|
@ -1,5 +1,7 @@
|
|
package com.yihu.wlyy.wechat.process;
|
|
package com.yihu.wlyy.wechat.process;
|
|
|
|
|
|
|
|
import com.yihu.wlyy.entity.dict.SystemDict;
|
|
|
|
import com.yihu.wlyy.repository.dict.SystemDictDao;
|
|
import com.yihu.wlyy.task.PushMsgTask;
|
|
import com.yihu.wlyy.task.PushMsgTask;
|
|
import com.yihu.wlyy.util.SystemConf;
|
|
import com.yihu.wlyy.util.SystemConf;
|
|
import com.yihu.wlyy.wechat.util.WeiXinMessageReplyUtils;
|
|
import com.yihu.wlyy.wechat.util.WeiXinMessageReplyUtils;
|
|
@ -37,6 +39,8 @@ public class WeiXinEventProcess {
|
|
@Autowired
|
|
@Autowired
|
|
private JdbcTemplate jdbcTemplate;
|
|
private JdbcTemplate jdbcTemplate;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
private SystemDictDao systemDictDao;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 微信推送事件处理
|
|
* 微信推送事件处理
|
|
@ -408,12 +412,13 @@ public class WeiXinEventProcess {
|
|
if(cout>0){
|
|
if(cout>0){
|
|
Map<String, String> articleConsult = new HashMap<>();
|
|
Map<String, String> articleConsult = new HashMap<>();
|
|
// 图文URL
|
|
// 图文URL
|
|
String urlConsult = systemConf.getProperty("patient_wifi_url");
|
|
|
|
|
|
String urlConsult = getSystemWifiUrl();
|
|
|
|
logger.info("hslq_Wifi_total_URL:"+urlConsult);
|
|
// 图文消息图片URL
|
|
// 图文消息图片URL
|
|
String picUrlConsult = systemConf.getProperty("patient_wifi_pic_url");
|
|
String picUrlConsult = systemConf.getProperty("patient_wifi_pic_url");
|
|
// URL设置服务器URL、AppId
|
|
// URL设置服务器URL、AppId
|
|
urlConsult = urlConsult.replace("{server}", wechat_base_url)
|
|
|
|
.replace("{appId}", appId);
|
|
|
|
|
|
// urlConsult = urlConsult.replace("{server}", wechat_base_url)
|
|
|
|
// .replace("{appId}", appId);
|
|
//图片地址
|
|
//图片地址
|
|
picUrlConsult = picUrlConsult.replace("{server}", serverUrl);
|
|
picUrlConsult = picUrlConsult.replace("{server}", serverUrl);
|
|
|
|
|
|
@ -430,6 +435,11 @@ public class WeiXinEventProcess {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public String getSystemWifiUrl(){
|
|
|
|
List<SystemDict> systemDicts = systemDictDao.findByDictName("HSLQ_WIFI");
|
|
|
|
return systemDicts.get(0).getCode();
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 设置微信公共的图文消息
|
|
* 设置微信公共的图文消息
|
|
*
|
|
*
|