|
@@ -564,7 +564,7 @@ public class TWechatPayConfigServiceImpl extends ServiceImpl<TWechatPayConfigMap
|
|
|
processRefund(bodyMap);
|
|
|
//成功应答
|
|
|
response.setStatus(HttpStatus.SC_OK);
|
|
|
-// hashMap.put("code", "SUCCESS");
|
|
|
+ hashMap.put("code", "SUCCESS");
|
|
|
} else {
|
|
|
response.setStatus(HttpStatus.SC_BAD_GATEWAY);
|
|
|
hashMap.put("code", "FAIL");
|
|
@@ -967,6 +967,9 @@ public class TWechatPayConfigServiceImpl extends ServiceImpl<TWechatPayConfigMap
|
|
|
LambdaQueryWrapper<TOrder> query = Wrappers.lambdaQuery();
|
|
|
query.eq(TOrder::getSn,sn);
|
|
|
TOrder order = orderService.getOne(query);
|
|
|
+ if (StringUtils.isNotEmpty(order.getRefundTrxNo()) && order.getRefundTrxNo().equals(refundNo)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
// 已退款
|
|
|
if(order.getRefundQuantity() < order.getProductNumber()) {
|
|
|
order.setStatus(1);
|