|
@@ -292,15 +292,17 @@ public class WeixinService {
|
|
JSONObject contentJson = JSON.parseObject(content);
|
|
JSONObject contentJson = JSON.parseObject(content);
|
|
String name = contentJson.getString("modality");
|
|
String name = contentJson.getString("modality");
|
|
String modality = contentJson.getString("name");
|
|
String modality = contentJson.getString("name");
|
|
- String eaxmDate = contentJson.getString("eaxmDate");
|
|
|
|
|
|
+ String examDate = contentJson.getString("examDate");
|
|
String hospital = contentJson.getString("hospital");
|
|
String hospital = contentJson.getString("hospital");
|
|
String report_id = contentJson.getString("report_id");
|
|
String report_id = contentJson.getString("report_id");
|
|
String exam_id = contentJson.getString("exam_id");
|
|
String exam_id = contentJson.getString("exam_id");
|
|
String id = contentJson.getString("id");
|
|
String id = contentJson.getString("id");
|
|
|
|
+
|
|
|
|
+
|
|
String template_id = PEIS_REPORT_PUSH_TEMPLATE_ID.get(source);
|
|
String template_id = PEIS_REPORT_PUSH_TEMPLATE_ID.get(source);
|
|
String urlString = BASR_URL + "reportStemp?id=" + id;
|
|
String urlString = BASR_URL + "reportStemp?id=" + id;
|
|
// todo https://wc4.pacsonline.cn/#/reportInfo/reportStemp?id=cnb51i2f3w5uv769&short=1&is_dcm=1&isEncrypt=0&isAnonymous=1&service=1
|
|
// todo https://wc4.pacsonline.cn/#/reportInfo/reportStemp?id=cnb51i2f3w5uv769&short=1&is_dcm=1&isEncrypt=0&isAnonymous=1&service=1
|
|
- apiResult = sendPeisReportPushMsg(openid, urlString, modality, name, eaxmDate, hospital, template_id);
|
|
|
|
|
|
+ apiResult = sendPeisReportPushMsg(openid, urlString, modality, name, examDate, hospital, template_id);
|
|
}
|
|
}
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|
|
@@ -509,7 +511,7 @@ public class WeixinService {
|
|
ApiResult apiResult = TemplateMsgApi.send(str);
|
|
ApiResult apiResult = TemplateMsgApi.send(str);
|
|
return apiResult;
|
|
return apiResult;
|
|
}
|
|
}
|
|
- public ApiResult sendPeisReportPushMsg(String openid, String url, String modality, String name, String eaxmDate, String hospital, String template_id) {
|
|
|
|
|
|
+ public ApiResult sendPeisReportPushMsg(String openid, String url, String modality, String name, String examDate, String hospital, String template_id) {
|
|
String str = " {\n" +
|
|
String str = " {\n" +
|
|
" \"touser\":\""+openid+"\",\n" +
|
|
" \"touser\":\""+openid+"\",\n" +
|
|
" \"template_id\":\""+template_id+"\",\n" +
|
|
" \"template_id\":\""+template_id+"\",\n" +
|
|
@@ -522,7 +524,7 @@ public class WeixinService {
|
|
" \"value\":\""+name+"\"\n" +
|
|
" \"value\":\""+name+"\"\n" +
|
|
" },\n" +
|
|
" },\n" +
|
|
" \"time2\":{\n" +
|
|
" \"time2\":{\n" +
|
|
- " \"value\":\""+eaxmDate+"\"\n" +
|
|
|
|
|
|
+ " \"value\":\""+examDate+"\"\n" +
|
|
" },\n" +
|
|
" },\n" +
|
|
" \"thing3\":{\n" +
|
|
" \"thing3\":{\n" +
|
|
" \"value\":\""+hospital+"\"\n" +
|
|
" \"value\":\""+hospital+"\"\n" +
|