|
@@ -1,5 +1,6 @@
|
|
|
package com.qs.mp.web.controller.api.callback;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
@@ -108,6 +109,7 @@ public class YsPayCallBackController {
|
|
|
}
|
|
|
params.put(key, valueStr);
|
|
|
}
|
|
|
+ logger.info("Ys支付回调:{}", JSON.toJSONString(params));
|
|
|
|
|
|
String sign = params.get("sign");
|
|
|
boolean flag = YsOnlineSignUtils.rsaCheckContent(params, sign, Constants.CHARSET_UTF_8, publicKeyPath);
|
|
@@ -116,7 +118,6 @@ public class YsPayCallBackController {
|
|
|
responseWrite(response, "fail");
|
|
|
return;
|
|
|
}
|
|
|
- String code = params.get("code");
|
|
|
String tradeNo = params.get("out_trade_no");
|
|
|
String orderNo = params.get("trade_no");
|
|
|
String tradeStatus = params.get("trade_status");
|
|
@@ -124,7 +125,7 @@ public class YsPayCallBackController {
|
|
|
int totalAmount = new BigDecimal(request.getParameter("total_amount")).multiply(new BigDecimal(100)).intValue();
|
|
|
logger.info("data: tradeNo:"+tradeNo +" orderNo:"+orderNo +" totalAmount:"+totalAmount+ "tradeStatus:"+tradeStatus);
|
|
|
|
|
|
- if (StringUtils.isBlank(code) || StringUtils.isBlank(tradeNo) || StringUtils.isBlank(orderNo) || StringUtils.isBlank(tradeStatus)) {
|
|
|
+ if (StringUtils.isBlank(tradeNo) || StringUtils.isBlank(orderNo) || StringUtils.isBlank(tradeStatus)) {
|
|
|
logger.error("ys支付回调-参数错误");
|
|
|
responseWrite(response, "fail");
|
|
|
return;
|