release--微信支付timestamp改成int类型

release-2024-04-25
wangqing 1 week ago
parent a88edcb906
commit 898e6d3336

@ -136,9 +136,11 @@ public class MemberShipService {
request.setOutTradeNo(outTradeNo);
// 调用接口
PrepayResponse response = wxPayAppService.prepay(request);
Map<String, String> 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);
}

Loading…
Cancel
Save