退款修改

This commit is contained in:
2024-10-14 10:03:03 +08:00
parent 2553a3605d
commit c88b838e88
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ public class NotifyController {
public Object fstPay(@RequestBody Map<String, String> req) {
log.info("接收到福商通支付回调: {}", req);
orderInfoService.successPay(req);
return "ok";
return "SUCCESS";
}
@AnonymousAccess
@@ -39,6 +39,6 @@ public class NotifyController {
public Object fstReturn(@RequestBody Map<String, String> req) {
log.info("接收到福商通退款回调: {}", req);
orderInfoService.successReturn(req);
return "ok";
return "SUCCESS";
}
}

View File

@@ -2066,7 +2066,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
orderInfo.setRefundRemark(returnOrderDTO.getNote());
if ("scanCode".equals(payType) || "wx_lite".equals(payType)) {
payService.returnOrder(Integer.valueOf(shopId), orderInfo, returnOrderInfo);
orderInfo.setStatus("refunding");
orderInfo.setStatus("refund");
// 储值卡支付退款
} else if ("deposit".equals(payType)) {
orderInfoService.depositReturn(Integer.valueOf(orderInfo.getUserId()), Integer.valueOf(orderInfo.getShopId()), returnOrderInfo.getRefundAmount());