|
|
@@ -22,6 +22,8 @@ public class WeChatUtils {
|
|
|
private String appId;
|
|
|
@Value(value = "${wx.appSecret}")
|
|
|
private String appSecret;
|
|
|
+ @Value(value = "${wx.state}")
|
|
|
+ private String wxState;
|
|
|
@Autowired
|
|
|
private RedisUtil redisUtil;
|
|
|
|
|
|
@@ -47,6 +49,8 @@ public class WeChatUtils {
|
|
|
String url=send_url.replace("ACCESS_TOKEN", accessToken);
|
|
|
map.put("access_token", accessToken);
|
|
|
map.put("touser", openid);
|
|
|
+ map.put("page", "/pages/egressDetails/index?id=");
|
|
|
+ map.put("miniprogram_state", wxState);
|
|
|
if (type==1) {
|
|
|
map.put("template_id", sptz);
|
|
|
map.put("data",getData(type,date, aname,remarks));
|