处理H5支付重定向链接

This commit is contained in:
TinyAnts 2023-03-31 18:13:35 +08:00
parent 89598da689
commit 4f723d5237
1 changed files with 2 additions and 1 deletions

View File

@ -173,7 +173,8 @@ public class PayServiceImpl implements IPayService {
Assert.notNull(params.getRedirectUrl(), "redirectUrl参数缺失");
Map<String, String> map = new LinkedHashMap<>();
String h5Url = result.toString();
h5Url += "&showCheck=true&scene="+params.getAttach()+"&redirect_url="+params.getRedirectUrl();
String redirectUrl = RequestUtils.uri() + params.getRedirectUrl();
h5Url += "&showCheck=true&scene="+params.getAttach()+"&redirect_url="+redirectUrl;
map.put("url", h5Url);
return map;
}