退款修改
This commit is contained in:
@@ -31,7 +31,7 @@ public class NotifyController {
|
|||||||
public Object fstPay(@RequestBody Map<String, String> req) {
|
public Object fstPay(@RequestBody Map<String, String> req) {
|
||||||
log.info("接收到福商通支付回调: {}", req);
|
log.info("接收到福商通支付回调: {}", req);
|
||||||
orderInfoService.successPay(req);
|
orderInfoService.successPay(req);
|
||||||
return "ok";
|
return "SUCCESS";
|
||||||
}
|
}
|
||||||
|
|
||||||
@AnonymousAccess
|
@AnonymousAccess
|
||||||
@@ -39,6 +39,6 @@ public class NotifyController {
|
|||||||
public Object fstReturn(@RequestBody Map<String, String> req) {
|
public Object fstReturn(@RequestBody Map<String, String> req) {
|
||||||
log.info("接收到福商通退款回调: {}", req);
|
log.info("接收到福商通退款回调: {}", req);
|
||||||
orderInfoService.successReturn(req);
|
orderInfoService.successReturn(req);
|
||||||
return "ok";
|
return "SUCCESS";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2066,7 +2066,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
orderInfo.setRefundRemark(returnOrderDTO.getNote());
|
orderInfo.setRefundRemark(returnOrderDTO.getNote());
|
||||||
if ("scanCode".equals(payType) || "wx_lite".equals(payType)) {
|
if ("scanCode".equals(payType) || "wx_lite".equals(payType)) {
|
||||||
payService.returnOrder(Integer.valueOf(shopId), orderInfo, returnOrderInfo);
|
payService.returnOrder(Integer.valueOf(shopId), orderInfo, returnOrderInfo);
|
||||||
orderInfo.setStatus("refunding");
|
orderInfo.setStatus("refund");
|
||||||
// 储值卡支付退款
|
// 储值卡支付退款
|
||||||
} else if ("deposit".equals(payType)) {
|
} else if ("deposit".equals(payType)) {
|
||||||
orderInfoService.depositReturn(Integer.valueOf(orderInfo.getUserId()), Integer.valueOf(orderInfo.getShopId()), returnOrderInfo.getRefundAmount());
|
orderInfoService.depositReturn(Integer.valueOf(orderInfo.getUserId()), Integer.valueOf(orderInfo.getShopId()), returnOrderInfo.getRefundAmount());
|
||||||
|
|||||||
Reference in New Issue
Block a user