收藏
回答

传参为json对象场景下的小程序短链获取?

String encodeUrl = URLEncoder.encode(projectInfo.toJSONString(), "utf-8");
com.alibaba.fastjson.JSONObject patient = new com.alibaba.fastjson.JSONObject();
patient.put("id", patientId);
patient.put("phone", patientPhone);
com.alibaba.fastjson.JSONObject params = new com.alibaba.fastjson.JSONObject();
params.put("path", path);
params.put("query", encodeUrl);

获取短链接结果:{"errcode":40212,"errmsg":"invalid query rid: 69536bc9-3f3223d8-6e6bc62f"}

最后一次编辑于  2025-12-30
回答关注问题邀请回答
收藏

1 个回答

  • 智能回答 智能回答 本次回答由AI生成
    2025-12-30
    有用
    回复
登录 后发表内容