From 23f253ed8c9bbcd3eaf0e5474fb57ee7731d5277 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Thu, 25 Apr 2024 13:46:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hai/pay/channel/huift/TradeService.java | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/hai-service/src/main/java/com/hai/pay/channel/huift/TradeService.java b/hai-service/src/main/java/com/hai/pay/channel/huift/TradeService.java index 90eaeeaf..afd018eb 100644 --- a/hai-service/src/main/java/com/hai/pay/channel/huift/TradeService.java +++ b/hai-service/src/main/java/com/hai/pay/channel/huift/TradeService.java @@ -46,22 +46,7 @@ public class TradeService { param.put("callbackUrl", CommonSysConst.getSysConfig().getHsgDomainName() + "/order/payNotify/huiftPay"); // param.put("remark", ""); // 备注 // param.put("outAppId", ""); - - if (order.getProductType().equals(OrderProductType.PRODUCT_TYPE12.getNumber())) { - - param.put("outRedirectPath", CommonSysConst.getSysConfig().getHsgDomainName()+"/hsgH5?accountId=0000016&key=&code=/physical-merchants/classify/order/orderDetail?id=" + order.getOrderNo()); - - } else if (order.getProductType().equals(OrderProductType.PRODUCT_TYPE5.getNumber())) { - - param.put("outRedirectPath", CommonSysConst.getSysConfig().getHsgDomainName()+"/hsgH5?accountId=0000016&key=&code=/pages/pay/success/success?id=" + order.getOrderNo()); - - } else if (order.getProductType().equals(OrderProductType.PRODUCT_TYPE1.getNumber()) || order.getProductType().equals(OrderProductType.PRODUCT_TYPE2.getNumber())) { - - param.put("outRedirectPath", CommonSysConst.getSysConfig().getHsgDomainName()+"/hsgH5?accountId=0000016&key=&code=/gianzhu-KFC/order-details/order-details?id=" + order.getOrderNo()); - - } else { - param.put("outRedirectPath", CommonSysConst.getSysConfig().getHsgDomainName()+"/hsgH5?accountId=0000016&key=&code=/pages/user/order_details/order_details?id=" + order.getOrderNo()); - } + param.put("outRedirectPath", CommonSysConst.getSysConfig().getHsgDomainName()+"/phg/#/physical-merchants/classify/goodsDetail/goodsDetail?goodsId=" + order.getOrderNo()); param.put("sign", HuiftConfig.md5Encode(HuiftConfig.paramSort(param, HuiftConfig.signSecret).getBytes()).toLowerCase()); JSONObject response = HttpsUtils.doPost(HuiftConfig.reqUrl + "/hfq/v1/thirdPay/thirdPreOrder", JSONObject.toJSONString(param)); if (response.getString("status").equals("ok")) {