|
@@ -127,7 +127,7 @@ public class WeixinService {
|
|
|
/*
|
|
|
* 发送模板消息
|
|
|
*/
|
|
|
- public void sendTemplateMsg(String openid, String url, String event, String userName,Integer pushtype) {
|
|
|
+ public void sendTemplateMsg(String openid, String url, String userName,Integer pushtype) {
|
|
|
PUSH_TYPE dType2 = null;
|
|
|
for (PUSH_TYPE xxxEnum : PUSH_TYPE.values()) {
|
|
|
if (xxxEnum.getPushType() == pushtype) {
|
|
@@ -148,7 +148,7 @@ public class WeixinService {
|
|
|
String str = " {\n" +
|
|
|
" \"touser\":\""+openid+"\",\n" +
|
|
|
" \"template_id\":\"VZ0Y3yj6N6187EggHdtdUZYcdQ-UycrjKCZKjqLn60Y\",\n" +
|
|
|
- " \"url\":\"http://www.sina.com\",\n" +
|
|
|
+ " \"url\":\""+url+"\",\n" +
|
|
|
" \"topcolor\":\"#FF0000\",\n" +
|
|
|
" \"data\":{\n" +
|
|
|
" \"first\": {\n" +
|