|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|