Browse Source

Merge branch 'develop' of gitadmin/tuoheng_telecomumale into release

tags/v1.0.0^2
chengwang 1 year ago
parent
commit
33b8511939
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/param/WxSendMessageParam.java
  2. +1
    -1
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WxServiceImpl.java

+ 2
- 2
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/param/WxSendMessageParam.java View File

private String page; private String page;


/** /**
* 版本控制
* 跳转小程序类型 developer为开发版;trial为体验版;formal为正式版;默认为正式版
*/ */
private String miniprogram_state;
//private String miniprogram_state;


/** /**
* 填充信息 * 填充信息

+ 1
- 1
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/WxServiceImpl.java View File

String url = "https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=" + getAccessToken(); String url = "https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=" + getAccessToken();
WxSendMessageParam param = new WxSendMessageParam(); WxSendMessageParam param = new WxSendMessageParam();
param.setPage("/package_question/pages/taskList/taskList"); param.setPage("/package_question/pages/taskList/taskList");
param.setMiniprogram_state("trial");
//param.setMiniprogram_state("formal");
param.setTouser(openId); param.setTouser(openId);
param.setTemplate_id(CommonConfig.templateId); param.setTemplate_id(CommonConfig.templateId);
Map<String, TemplateMinDto> data = new HashMap<>(3); Map<String, TemplateMinDto> data = new HashMap<>(3);

Loading…
Cancel
Save