修复H5支付页面转跳问题

This commit is contained in:
egzosn
2017-11-14 15:52:27 +08:00
parent d06205b0db
commit 89fe422fce

View File

@@ -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();