| | |
| | | param.put("width", 430); //二维码尺寸 |
| | | param.put("scene", "driverId=" + uid); |
| | | param.put("env_version", "release"); //正式版为 "release",体验版为 "trial",开发版为 "develop"。默认是正式版。 |
| | | param.put("check_path",false); // todo 正式版上面的后面的路径不存在,则不需要检查路径,上线后会存在 |
| | | HttpRequest post = HttpUtil.createPost(url); |
| | | post.body(JSON.toJSONString(param)); |
| | | |
| | |
| | | index=1; |
| | | String url1 = "https://api.weixin.qq.com/wxa/generate_urllink?access_token=" + accessToken; |
| | | Map<String, Object> param1 = new HashMap<>(); |
| | | param1.put("path", "pages/home/home"); |
| | | param1.put("query", "driverId=" + uid); |
| | | // todo 正式版下面的路径不存在,则不需要检查路径,上线后会存在,需要放开 |
| | | /* param1.put("path", "pages/home/home"); |
| | | param1.put("query", "driverId=" + uid);*/ |
| | | |
| | | HttpRequest post = HttpUtil.createPost(url1); |
| | | // map转json |