刘韬 6 years ago
parent
commit
9f9cd83c20

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

@@ -120,7 +120,7 @@ public class WeixinApiController extends ApiController {
         Integer pushType = getParaToInt("pushType");
         Integer pushType = getParaToInt("pushType");
         String openid = getPara("openid");
         String openid = getPara("openid");
         String source = getPara("source");
         String source = getPara("source");
-        String content = getPara("content");
+//        String content = getPara("content");
 		String appId;
 		String appId;
         switch (source) {
         switch (source) {
 		case "中世康恺电子胶片平台":
 		case "中世康恺电子胶片平台":
@@ -145,7 +145,7 @@ public class WeixinApiController extends ApiController {
 		}
 		}
         ApiConfigKit.setThreadLocalAppId(appId);
         ApiConfigKit.setThreadLocalAppId(appId);
 		WeixinService wService = ServiceFactory.getService(WeixinService.class);
 		WeixinService wService = ServiceFactory.getService(WeixinService.class);
-		ApiResult apiResult = wService.sendTemplateMsg(openid, content, pushType);
+		ApiResult apiResult = wService.sendTemplateMsg(openid, "", pushType);
 		renderJson(apiResult);
 		renderJson(apiResult);
     }
     }
     
     

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

@@ -173,11 +173,11 @@ public class WeixinService {
 		case REMOTE_DIAGNOSIS_REFUND:
 		case REMOTE_DIAGNOSIS_REFUND:
 		{
 		{
 			String urlString = "http://wechat.client.pacsonline.cn/#/pay?openid="+openid;
 			String urlString = "http://wechat.client.pacsonline.cn/#/pay?openid="+openid;
-			JSONObject contentJson = JSON.parseObject(content);
-			String out_trade_no = contentJson.getString("out_trade_no");
-			String name = contentJson.getString("name");
-			String total_fee = contentJson.getString("total_fee");
-			apiResult = sendRemoteDiagnosisRefundMsg(openid, urlString, out_trade_no, total_fee);
+//			JSONObject contentJson = JSON.parseObject(content);
+//			String out_trade_no = contentJson.getString("out_trade_no");
+//			String name = contentJson.getString("name");
+//			String total_fee = contentJson.getString("total_fee");
+			apiResult = sendRemoteDiagnosisRefundMsg(openid, urlString, "232", "3yuan");
 		}
 		}
 			break;
 			break;
 
 
@@ -293,7 +293,7 @@ public class WeixinService {
 	public ApiResult sendRemoteDiagnosisRefundMsg(String openid, String url, String out_trade_no, String total_fee) {
 	public ApiResult sendRemoteDiagnosisRefundMsg(String openid, String url, String out_trade_no, String total_fee) {
 		String str = " {\n" +
 		String str = " {\n" +
                 "           \"touser\":\""+openid+"\",\n" +
                 "           \"touser\":\""+openid+"\",\n" +
-                "           \"template_id\":\"VZ0Y3yj6N6187EggHdtdUZYcdQ-UycrjKCZKjqLn60Y\",\n" +
+                "           \"template_id\":\"34C7dwguVjn1zGAw1Qu-HFImnWwHa54A2WrAA0DLUHE\",\n" +
                 "           \"url\":\""+url+"\",\n" +
                 "           \"url\":\""+url+"\",\n" +
                 "           \"topcolor\":\"#FF0000\",\n" +
                 "           \"topcolor\":\"#FF0000\",\n" +
                 "           \"data\":{\n" +
                 "           \"data\":{\n" +