小程序消息推送
This commit is contained in:
parent
7cde67cee2
commit
aeba8960f4
@ -203,11 +203,12 @@ public class WeChatOfficialAccountUtils {
|
||||
}
|
||||
//获取微信小程序的accessToken
|
||||
String accessToken = this.getWeChatAppletAccessToken();
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
//定义模板内容
|
||||
Map<String, Object> paramsMap = new LinkedHashMap<>();
|
||||
paramsMap.put("touser", patientVO.getOpenId());
|
||||
paramsMap.put("template_id", weChatAppletChatConfig.getHealthyPropagandaId());
|
||||
//跳转小程序类型:developer为开发版;trial为体验版;formal为正式版;默认为正式版
|
||||
//paramsMap.put("miniprogram_state", "developer");
|
||||
paramsMap.put("page", "pages/propaganda/propaganda?manageRouteNodeId="+patientVO.getSignPatientManageRouteNodeId());
|
||||
Map<String, Object> dataMap = new LinkedHashMap<>();
|
||||
dataMap.put("thing5", new MessageValueEntity(thing5));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user