From 898e6d3336601d57bd841621c6f19b5a22053dc3 Mon Sep 17 00:00:00 2001 From: wangqing <408564126@qq.com> Date: Sat, 16 Nov 2024 12:38:06 +0800 Subject: [PATCH] =?UTF-8?q?release--=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98ti?= =?UTF-8?q?mestamp=E6=94=B9=E6=88=90int=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/luoo/user/service/MemberShipService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/luoo_user/src/main/java/com/luoo/user/service/MemberShipService.java b/luoo_user/src/main/java/com/luoo/user/service/MemberShipService.java index d792122..2a5cfc8 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/MemberShipService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/MemberShipService.java @@ -136,9 +136,11 @@ public class MemberShipService { request.setOutTradeNo(outTradeNo); // 调用接口 PrepayResponse response = wxPayAppService.prepay(request); - Map map = null; + Map map = null; try { map = WxPayKit.appCreateSign(wxPayConfig.getAppId(), wxPayConfig.getMchId(), response.getPrepayId(), wxPayConfig.getPrivateKeyPath()); + String timestamp = (String) map.get("timestamp"); + map.put("timestamp", Integer.valueOf(timestamp)); } catch (Exception e) { throw new RuntimeException(e); }