我在调用scheme码的时候 传了path参数不生效,无法跳转到预期跳转的首页,然后query参数中传入了重定向的参数,前端接收不到,请问这是为什么?
String accessToken = getAccessToken(loginType);
HttpEntityBody httpEntityBody = new HttpEntityBody();
if(StringUtils.isNotBlank(param)) {
WxJumpVo wxJumpVo = new WxJumpVo();
wxJumpVo.setPath("pages/applyJob/myapply");
wxJumpVo.setQuery("path=pages/applyJob/myapply");
Map<String, WxJumpVo> map = new HashMap<>();
map.put("jump_wxa", wxJumpVo);
httpEntityBody.setBody(JSONObject.toJSONString(map));
log.info("param:{}", JSONObject.toJSONString(map));
}
httpEntityBody.setUrl("https://api.weixin.qq.com/wxa/generatescheme?access_token=" + accessToken);
weixin://dl/business/?t=G1matZXeVEg
这是生成的scheme码
你的path路径必须是已经在线上环境已经存在的path路径才可以