支付宝小程序前端returnUrl未编码会报错解决,需要加上url编码 URLEncoder.encode
支付宝小程序前端returnUrl未编码会报错解决,需要加上url编码
log.info("创建免押加密请求: {}", JSON.toJSONString(encryptedRequest));
String encodedReturnUrl = returnUrl;try {encodedReturnUrl = URLEncoder.encode(returnUrl, "UTF-8");} catch (UnsupportedEncodingException e) {throw new RuntimeException(e);}
