mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-06-05 16:09:47 +08:00
H5支付新增回调页面
This commit is contained in:
@@ -327,7 +327,7 @@ public class WxPayService extends BasePayService {
|
||||
throw new PayErrorException(new WxPayError((String) orderInfo.get("return_code"), (String) orderInfo.get("return_msg")));
|
||||
}
|
||||
if (WxTransactionType.MWEB.name().equals(orderInfo.get("trade_type"))) {
|
||||
return "<script type=\"text/javascript\">location.href=\"" + orderInfo.get("mweb_url") + ";\"</script>";
|
||||
return String.format("<script type=\"text/javascript\">location.href=\"%s%s;\"</script>",orderInfo.get("mweb_url"), StringUtils.isEmpty(payConfigStorage.getReturnUrl()) ? "" : "&redirect_url=" + payConfigStorage.getReturnUrl());
|
||||
}
|
||||
throw new UnsupportedOperationException();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user