|
@ -245,9 +245,9 @@ public class PushMsgTask {
|
|
String temp_id = "";
|
|
String temp_id = "";
|
|
if (type == 3) {
|
|
if (type == 3) {
|
|
if (json.has("isPublic") && json.getInt("isPublic") == 1) {
|
|
if (json.has("isPublic") && json.getInt("isPublic") == 1) {
|
|
temp.setUrl(url + "jbsq/html/public-consult-detail.html?openid=" + openid + "&code=" + json.getString("consult") + "&toUser=" + json.getString("toUser"));
|
|
|
|
|
|
temp.setUrl(url + "jbsq/html/public-consult-detail.html?openid=" + openid + "&code=" + json.getString("consult") + "&toUser=" + json.getString("toUser") + "&toName=" + name);
|
|
} else {
|
|
} else {
|
|
temp.setUrl(url + "yszx/html/consulting-doctor.html?openid=" + openid + "&consult=" + json.getString("consult") + "&toUser=" + json.getString("toUser"));
|
|
|
|
|
|
temp.setUrl(url + "yszx/html/consulting-doctor.html?openid=" + openid + "&consult=" + json.getString("consult") + "&toUser=" + json.getString("toUser") + "&toName=" + name);
|
|
}
|
|
}
|
|
temp_id = SystemConf.getInstance().getSystemProperties().getProperty("template_consult_notice");
|
|
temp_id = SystemConf.getInstance().getSystemProperties().getProperty("template_consult_notice");
|
|
temp.setTemplate_id(temp_id);
|
|
temp.setTemplate_id(temp_id);
|
|
@ -268,7 +268,7 @@ public class PushMsgTask {
|
|
temp_id = SystemConf.getInstance().getSystemProperties().getProperty("template_sign_success");
|
|
temp_id = SystemConf.getInstance().getSystemProperties().getProperty("template_sign_success");
|
|
else
|
|
else
|
|
temp_id = SystemConf.getInstance().getSystemProperties().getProperty("template_sign_failed");
|
|
temp_id = SystemConf.getInstance().getSystemProperties().getProperty("template_sign_failed");
|
|
temp.setUrl(url + "ssgg/html/doctor-homepage-new.html?openid=" + openid + "&state=" + json.getString("doctor") + "&toUser=" + json.getString("toUser"));
|
|
|
|
|
|
temp.setUrl(url + "ssgg/html/doctor-homepage-new.html?openid=" + openid + "&state=" + json.getString("doctor") + "&toUser=" + json.getString("toUser") + "&toName=" + name);
|
|
temp.setTouser(openid);
|
|
temp.setTouser(openid);
|
|
temp.setTopcolor("#000000");
|
|
temp.setTopcolor("#000000");
|
|
temp.setTemplate_id(temp_id);
|
|
temp.setTemplate_id(temp_id);
|
|
@ -289,7 +289,7 @@ public class PushMsgTask {
|
|
keyword4.setValue(json.getString("content"));
|
|
keyword4.setValue(json.getString("content"));
|
|
m.put("keyword4", keyword4);
|
|
m.put("keyword4", keyword4);
|
|
} else if (type == 4) {
|
|
} else if (type == 4) {
|
|
temp.setUrl(url + "yszd/html/guidance-detail.html?openid=" + openid + "&toUser=" + json.getString("toUser") + "&id=" + String.valueOf(json.get("id")));
|
|
|
|
|
|
temp.setUrl(url + "yszd/html/guidance-detail.html?openid=" + openid + "&toUser=" + json.getString("toUser") + "&id=" + String.valueOf(json.get("id")) + "&toName=" + name);
|
|
temp_id = SystemConf.getInstance().getSystemProperties().getProperty("template_health_notice");
|
|
temp_id = SystemConf.getInstance().getSystemProperties().getProperty("template_health_notice");
|
|
temp.setTemplate_id(temp_id);
|
|
temp.setTemplate_id(temp_id);
|
|
WechatTemplateData keyword1 = new WechatTemplateData();
|
|
WechatTemplateData keyword1 = new WechatTemplateData();
|
|
@ -313,7 +313,7 @@ public class PushMsgTask {
|
|
keyword5.setValue(json.getString("content"));
|
|
keyword5.setValue(json.getString("content"));
|
|
m.put("keyword5", keyword5);
|
|
m.put("keyword5", keyword5);
|
|
} else if (type == 5) {
|
|
} else if (type == 5) {
|
|
temp.setUrl(url + "ssgg/html/doctor-homepage-new.html?openid=" + openid + "&state=" + json.getString("doctor") + "&toUser=" + json.getString("toUser"));
|
|
|
|
|
|
temp.setUrl(url + "ssgg/html/doctor-homepage-new.html?openid=" + openid + "&state=" + json.getString("doctor") + "&toUser=" + json.getString("toUser") + "&toName=" + name);
|
|
temp_id = SystemConf.getInstance().getSystemProperties().getProperty("template_termination");
|
|
temp_id = SystemConf.getInstance().getSystemProperties().getProperty("template_termination");
|
|
temp.setTemplate_id(temp_id);
|
|
temp.setTemplate_id(temp_id);
|
|
WechatTemplateData keyword1 = new WechatTemplateData();
|
|
WechatTemplateData keyword1 = new WechatTemplateData();
|
|
@ -333,7 +333,7 @@ public class PushMsgTask {
|
|
keyword4.setValue(json.getString("date"));
|
|
keyword4.setValue(json.getString("date"));
|
|
m.put("keyword4", keyword4);
|
|
m.put("keyword4", keyword4);
|
|
} else if (type == 6) {
|
|
} else if (type == 6) {
|
|
temp.setUrl(url + "wdyy/html/detail-appointment.html?openid=" + openid + "&id=" + json.getLong("id") + "&toUser=" + json.getString("toUser"));
|
|
|
|
|
|
temp.setUrl(url + "wdyy/html/detail-appointment.html?openid=" + openid + "&id=" + json.getLong("id") + "&toUser=" + json.getString("toUser") + "&toName=" + name);
|
|
temp_id = SystemConf.getInstance().getSystemProperties().getProperty("template_appoint_success");
|
|
temp_id = SystemConf.getInstance().getSystemProperties().getProperty("template_appoint_success");
|
|
temp.setTemplate_id(temp_id);
|
|
temp.setTemplate_id(temp_id);
|
|
WechatTemplateData keyword1 = new WechatTemplateData();
|
|
WechatTemplateData keyword1 = new WechatTemplateData();
|
|
@ -353,7 +353,7 @@ public class PushMsgTask {
|
|
keyword4.setValue(json.getString("date"));
|
|
keyword4.setValue(json.getString("date"));
|
|
m.put("planstarttime", keyword4);
|
|
m.put("planstarttime", keyword4);
|
|
} else if (type == 7) {
|
|
} else if (type == 7) {
|
|
temp.setUrl(url + "wdyy/html/my-appointment.html?openid=" + openid + "&toUser=" + json.getString("toUser"));
|
|
|
|
|
|
temp.setUrl(url + "wdyy/html/my-appointment.html?openid=" + openid + "&toUser=" + json.getString("toUser") + "&toName=" + name);
|
|
temp_id = SystemConf.getInstance().getSystemProperties().getProperty("template_appoint_failed");
|
|
temp_id = SystemConf.getInstance().getSystemProperties().getProperty("template_appoint_failed");
|
|
temp.setTemplate_id(temp_id);
|
|
temp.setTemplate_id(temp_id);
|
|
WechatTemplateData keyword1 = new WechatTemplateData();
|
|
WechatTemplateData keyword1 = new WechatTemplateData();
|
|
@ -393,7 +393,7 @@ public class PushMsgTask {
|
|
keyword4.setValue(json.getString("content"));
|
|
keyword4.setValue(json.getString("content"));
|
|
m.put("remark", keyword4);
|
|
m.put("remark", keyword4);
|
|
} else if (type == 9) {
|
|
} else if (type == 9) {
|
|
temp.setUrl(url + "jkjy/html/article.html?openid=" + openid + "&dataId=" + json.getString("article") + "&toUser=" + json.getString("toUser"));
|
|
|
|
|
|
temp.setUrl(url + "jkjy/html/article.html?openid=" + openid + "&dataId=" + json.getString("article") + "&toUser=" + json.getString("toUser") + "&toName=" + name);
|
|
temp_id = SystemConf.getInstance().getSystemProperties().getProperty("template_healthy_article");
|
|
temp_id = SystemConf.getInstance().getSystemProperties().getProperty("template_healthy_article");
|
|
temp.setTemplate_id(temp_id);
|
|
temp.setTemplate_id(temp_id);
|
|
WechatTemplateData keyword1 = new WechatTemplateData();
|
|
WechatTemplateData keyword1 = new WechatTemplateData();
|
|
@ -417,7 +417,7 @@ public class PushMsgTask {
|
|
keyword5.setValue(json.getString("remark"));
|
|
keyword5.setValue(json.getString("remark"));
|
|
m.put("remark", keyword5);
|
|
m.put("remark", keyword5);
|
|
} else if (type == 10) {
|
|
} else if (type == 10) {
|
|
temp.setUrl(url + "qygl/html/signing-doctors.html?openid=" + openid + "&state=" + openid + "&toUser=" + json.getString("toUser"));
|
|
|
|
|
|
temp.setUrl(url + "qygl/html/signing-doctors.html?openid=" + openid + "&state=" + openid + "&toUser=" + json.getString("toUser") + "&toName=" + name);
|
|
temp.setTemplate_id(SystemConf.getInstance().getSystemProperties()
|
|
temp.setTemplate_id(SystemConf.getInstance().getSystemProperties()
|
|
.getProperty("template_doctor_change"));
|
|
.getProperty("template_doctor_change"));
|
|
WechatTemplateData keyword1 = new WechatTemplateData();
|
|
WechatTemplateData keyword1 = new WechatTemplateData();
|