|
@@ -158,6 +158,9 @@ public class PayApplicationServiceImpl extends ServiceImpl<PayApplicationMapper,
|
|
|
|
|
|
@Override
|
|
|
public String appletStoreNotify(HttpServletRequest request, HttpServletResponse response) throws IOException {
|
|
|
+
|
|
|
+ log.error("小程序商城支付回调");
|
|
|
+
|
|
|
// 读取参数
|
|
|
InputStream inputStream = request.getInputStream();
|
|
|
String requestStr = IOUtils.toString(inputStream, StandardCharsets.UTF_8);
|
|
@@ -178,7 +181,7 @@ public class PayApplicationServiceImpl extends ServiceImpl<PayApplicationMapper,
|
|
|
// 判断签名是否正确
|
|
|
String mySign = WxPayUtil.generateSignature(packageParams, payConfigMap.get("apiKey"));
|
|
|
if (!Objects.equals(mySign, packageParams.get("sign"))) {
|
|
|
- log.error("通知签名验证失败, muSign : {}, sign : {}", mySign, packageParams.get("sign"));
|
|
|
+ log.error("小程序商城支付回调, 通知签名验证失败, muSign : {}, sign : {}", mySign, packageParams.get("sign"));
|
|
|
return null;
|
|
|
}
|
|
|
log.info("小程序商城支付成功回调");
|