Browse Source

韩誉演示

付宇 4 months ago
parent
commit
6fbaa48355

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

@@ -39,7 +39,6 @@ public class WeixinMsgController extends MsgControllerAdapter {
 	@Override
 	protected void processInTextMsg(InTextMsg inTextMsg) {
 		String msgContent = inTextMsg.getContent().trim();
-
 		if ("演示".equalsIgnoreCase(msgContent)) {
 
 //			CustomServiceApi.sendText(inTextMsg.getFromUserName(),
@@ -59,7 +58,28 @@ public class WeixinMsgController extends MsgControllerAdapter {
 			CustomServiceApi.sendNews(inTextMsg.getFromUserName(), list);
 			renderNull();
 
-		} if ("报告解读测试".equalsIgnoreCase(msgContent)) {
+		} if ("韩誉演示".equalsIgnoreCase(msgContent)) {
+
+			//			CustomServiceApi.sendText(inTextMsg.getFromUserName(),
+			//					"演示系统将于2021年4月2-5日升级,如有疑问请联系客户经理,感谢您的支持");
+			//
+						CustomServiceApi.sendText(inTextMsg.getFromUserName(), AUTO_MSG);
+			
+						String toUrlString = "https://wc4.pacsonline.cn/#/reportInfo/reportStemp?id=cnb51i2f3w5uv769&short=1&is_dcm=1&isEncrypt=0&isAnonymous=1&service=1";
+			
+						List<Articles> list = new ArrayList<Articles>();
+						Articles articles1 = new Articles();
+						articles1.setTitle("【韩誉演示示例】点击查看本次影像和报告");
+						articles1.setDescription("欢迎使用冠医云-数字影像服务!\n点击进入查看详情,您可以分享给家属或医生,还可以随时在\"个人中心-我的检查列表\"中查看本次影像和报告");
+						articles1.setPicurl("https://ris4.pacsonline.cn/assets/ris_logo.7e42397f.png");
+						articles1.setUrl(toUrlString);
+						list.add(articles1);
+						CustomServiceApi.sendNews(inTextMsg.getFromUserName(), list);
+						renderNull();
+			
+					} 
+		
+		if ("报告解读测试".equalsIgnoreCase(msgContent)) {
 //			CustomServiceApi.sendText(inTextMsg.getFromUserName(),
 //			"演示系统将于2021年4月2-5日升级,如有疑问请联系客户经理,感谢您的支持");
 			// CustomServiceApi.sendText(inTextMsg.getFromUserName(), AUTO_MSG);