|
@@ -128,10 +128,18 @@ public class MiPay2Service extends PayBaseService {
|
|
|
String postBody = JsonUtil.toString(postBodyMap);
|
|
|
|
|
|
String accessToken = wxApiService.getAccessToken(config.getAppId(), config.getSecret());
|
|
|
+
|
|
|
|
|
|
String signature = calcSignature(postBody, sessionKey);
|
|
|
+ log.error("余额 : 登录签名计算参数, postBody : {}, sessionKey : {}, signature : {}", postBody, sessionKey, signature);
|
|
|
+
|
|
|
+
|
|
|
|
|
|
String paySig = calcPaySig(MiPay2Service.BALANCE_URL, postBody, config.getAppKeyByIsSand(this.isSand));
|
|
|
+
|
|
|
+ log.error("余额 : 支付签名计算参数, url : {}, postBody : {}, appKey : {}, paySig : {}", MiPay2Service.BALANCE_URL, postBody, config.getAppKeyByIsSand(this.isSand), paySig);
|
|
|
+
|
|
|
+
|
|
|
|
|
|
Map<String, String> headParamMap = new HashMap<>(3);
|
|
|
headParamMap.put("access_token", accessToken);
|
|
@@ -158,8 +166,14 @@ public class MiPay2Service extends PayBaseService {
|
|
|
String accessToken = wxApiService.getAccessToken(config.getAppId(), config.getSecret());
|
|
|
|
|
|
String signature = this.calcSignature(postBody, sessionKey);
|
|
|
+
|
|
|
+ log.error("支付 : 登录签名计算参数, postBody : {}, sessionKey : {}, signature : {}", postBody, sessionKey, signature);
|
|
|
+
|
|
|
|
|
|
String paySig = this.calcPaySig(MiPay2Service.PAY_URL, postBody, config.getAppKeyByIsSand(this.isSand));
|
|
|
+
|
|
|
+ log.error("支付 : 支付签名计算参数, url : {}, postBody : {}, appKey : {}, paySig : {}", MiPay2Service.BALANCE_URL, postBody, config.getAppKeyByIsSand(this.isSand), paySig);
|
|
|
+
|
|
|
|
|
|
Map<String, String> headParamMap = new HashMap<>(3);
|
|
|
headParamMap.put("access_token", accessToken);
|