From 54c69af36d626443035c4c9baffef5db9edf91d5 Mon Sep 17 00:00:00 2001 From: damonyuan <404054358@qq.com> Date: Fri, 15 Nov 2024 00:32:17 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=B0=8F=E7=A8=8B=E5=BA=8F=E5=8F=91?= =?UTF-8?q?=E8=B5=B7=E6=94=AF=E4=BB=98=E5=A4=B1=E8=B4=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/mdd/front/service/impl/PayServiceImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/like-front/src/main/java/com/mdd/front/service/impl/PayServiceImpl.java b/server/like-front/src/main/java/com/mdd/front/service/impl/PayServiceImpl.java index cecfa38f..f330eced 100644 --- a/server/like-front/src/main/java/com/mdd/front/service/impl/PayServiceImpl.java +++ b/server/like-front/src/main/java/com/mdd/front/service/impl/PayServiceImpl.java @@ -172,7 +172,7 @@ public class PayServiceImpl implements IPayService { String openId = null; UserAuth userAuth = userAuthMapper.selectOne(new QueryWrapper() .eq("user_id", params.getUserId()) - .eq("terminal", terminal) + //.eq("terminal", terminal) .last("limit 1")); if (StringUtils.isNotNull(userAuth)) { @@ -217,7 +217,10 @@ public class PayServiceImpl implements IPayService { return ret; } JSONObject ret = new JSONObject(); - ret.put("config", WxPayDriver.unifiedOrder(requestV3)); + JSONObject config = JSONObject.parseObject(JSONObject.toJSONString(WxPayDriver.unifiedOrder(requestV3))); + config.put("package", config.getString("packageValue")); + config.remove("packageValue"); + ret.put("config", config); ret.put("pay_way", 2); return ret; //return WxPayDriver.unifiedOrder(requestV3);