刘韬 5 年之前
父节点
当前提交
8d154a4046

+ 1 - 1
PacsOnline_Wechat_Patient/src/main/java/com/zskk/controller/WeixinApiController.java

@@ -122,7 +122,7 @@ public class WeixinApiController extends ApiController {
         String openid = getPara("openid");
 		WeixinService wService = ServiceFactory.getService(WeixinService.class);
 		String urlString = "http://wechat.client.pacsonline.cn/#/pay?openid="+openid;
-		wService.sendTemplateMsg(openid, urlString, null, "a", pushType);
+		wService.sendTemplateMsg(openid, urlString, "a", pushType);
 
     }
     

+ 2 - 2
PacsOnline_Wechat_Patient/src/main/java/com/zskk/service/WeixinService.java

@@ -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" +