mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-06-08 18:34:47 +08:00
修复H5支付页面转跳问题
This commit is contained in:
@@ -326,7 +326,7 @@ public class WxPayService extends BasePayService {
|
||||
if (!"SUCCESS".equals(orderInfo.get("return_code"))) {
|
||||
throw new PayErrorException(new WxPayError((String) orderInfo.get("return_code"), (String) orderInfo.get("return_msg")));
|
||||
}
|
||||
if (WxTransactionType.MWEB.equals(orderInfo.get("trade_type"))) {
|
||||
if (WxTransactionType.MWEB.name().equals(orderInfo.get("trade_type"))) {
|
||||
return "<script type=\"text/javascript\">location.href=\"" + orderInfo.get("mweb_url") + ";\"</script>";
|
||||
}
|
||||
throw new UnsupportedOperationException();
|
||||
|
||||
Reference in New Issue
Block a user