|
|
@ -136,9 +136,11 @@ public class MemberShipService {
|
|
|
|
request.setOutTradeNo(outTradeNo);
|
|
|
|
request.setOutTradeNo(outTradeNo);
|
|
|
|
// 调用接口
|
|
|
|
// 调用接口
|
|
|
|
PrepayResponse response = wxPayAppService.prepay(request);
|
|
|
|
PrepayResponse response = wxPayAppService.prepay(request);
|
|
|
|
Map<String, String> map = null;
|
|
|
|
Map map = null;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
map = WxPayKit.appCreateSign(wxPayConfig.getAppId(), wxPayConfig.getMchId(), response.getPrepayId(), wxPayConfig.getPrivateKeyPath());
|
|
|
|
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) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
throw new RuntimeException(e);
|
|
|
|
throw new RuntimeException(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|