https://api.weixin.qq.com/wxa/generate_urllink?access_token=ACCESS_TOKEN
String accessToken = CommonUtils.getAccessToken();
JSONObject jsonObject = new JSONObject();
jsonObject.put("path", "/pages/index/index");
if(Objects.isNull(accessToken)){
throw new BusinessException("1001","获取小程序token信息失败!");
}
String url = "https://api.weixin.qq.com/wxa/generate_urllink?access_token=" + accessToken;
String s = CommonUtils.sendPost(url, jsonObject.toJSONString());
这种返回的结果一直报错:
{"errcode":0,"errmsg":"ok","url_link":"******"}
这个接口调不通,请问大佬们知道怎么解决嘛
报啥错啊