|
@ -72,11 +72,7 @@ public class GcOtherMessageController {
|
|
@ApiParam(name = "type", value = "1待支付,2支付成功", required = true) @RequestParam(value = "type", required = true) String type
|
|
@ApiParam(name = "type", value = "1待支付,2支付成功", required = true) @RequestParam(value = "type", required = true) String type
|
|
) {
|
|
) {
|
|
try {
|
|
try {
|
|
System.out.println("------------start send message--------------");
|
|
|
|
System.out.println("param1-------"+cardNo);
|
|
|
|
System.out.println("param2-------"+templateJson);
|
|
|
|
System.out.println("param3-------"+type);
|
|
|
|
System.out.println("param4-------"+url);
|
|
|
|
|
|
|
|
Patient patient = patientDao.findBySsc(cardNo);
|
|
Patient patient = patientDao.findBySsc(cardNo);
|
|
SignFamily signFamily = null;
|
|
SignFamily signFamily = null;
|
|
if (patient!=null){
|
|
if (patient!=null){
|
|
@ -92,10 +88,16 @@ public class GcOtherMessageController {
|
|
}else if ("2".equals(type)){
|
|
}else if ("2".equals(type)){
|
|
templateId=template_pay_success;
|
|
templateId=template_pay_success;
|
|
}
|
|
}
|
|
System.out.println("接收者id----"+patient.getOpenid());
|
|
|
|
System.out.println("消息模板id----"+templateId);
|
|
|
|
|
|
|
|
//郑松
|
|
//郑松
|
|
if ("oULM4xNdf4lqcjuq0-MGFRuhOcz8".equals(patient.getOpenid())){
|
|
if ("oULM4xNdf4lqcjuq0-MGFRuhOcz8".equals(patient.getOpenid())){
|
|
|
|
System.out.println("------------start send message--------------");
|
|
|
|
System.out.println("param1-------"+cardNo);
|
|
|
|
System.out.println("param2-------"+templateJson);
|
|
|
|
System.out.println("param3-------"+type);
|
|
|
|
System.out.println("param4-------"+url);
|
|
|
|
System.out.println("接收者id----"+patient.getOpenid());
|
|
|
|
System.out.println("消息模板id----"+templateId);
|
|
weiXinTempMsgSendUtils.sendTemplateMessage(templateId, patient.getOpenid(), url, new JSONObject(templateJson));
|
|
weiXinTempMsgSendUtils.sendTemplateMessage(templateId, patient.getOpenid(), url, new JSONObject(templateJson));
|
|
}
|
|
}
|
|
/*if ("3502110100".equals(signFamily.getHospital())){
|
|
/*if ("3502110100".equals(signFamily.getHospital())){
|
|
@ -103,6 +105,13 @@ public class GcOtherMessageController {
|
|
}*/
|
|
}*/
|
|
//秀萍
|
|
//秀萍
|
|
if ("oULM4xPHQO1MYOPJdI9AtVKx3fIo".equals(patient.getOpenid())){
|
|
if ("oULM4xPHQO1MYOPJdI9AtVKx3fIo".equals(patient.getOpenid())){
|
|
|
|
System.out.println("------------start send message--------------");
|
|
|
|
System.out.println("param1-------"+cardNo);
|
|
|
|
System.out.println("param2-------"+templateJson);
|
|
|
|
System.out.println("param3-------"+type);
|
|
|
|
System.out.println("param4-------"+url);
|
|
|
|
System.out.println("接收者id----"+patient.getOpenid());
|
|
|
|
System.out.println("消息模板id----"+templateId);
|
|
weiXinTempMsgSendUtils.sendTemplateMessage(templateId, patient.getOpenid(), url, new JSONObject(templateJson));
|
|
weiXinTempMsgSendUtils.sendTemplateMessage(templateId, patient.getOpenid(), url, new JSONObject(templateJson));
|
|
}
|
|
}
|
|
return new BaseResultModel(BaseResultModel.statusEm.success.getCode(),BaseResultModel.statusEm.success.getMessage());
|
|
return new BaseResultModel(BaseResultModel.statusEm.success.getCode(),BaseResultModel.statusEm.success.getMessage());
|