fixbug 展示退款金额有误 & 关闭余额充值服务

This commit is contained in:
2024-01-29 22:42:41 +08:00
parent cf506c3b36
commit 6736a5c861
4 changed files with 6 additions and 6 deletions

View File

@@ -8,6 +8,7 @@ import com.ydd.framework.core.common.Pagination;
import com.ydd.framework.core.common.dto.ResponseDTO;
import com.ydd.framework.core.common.utils.RequestUtils;
import com.ydd.framework.core.controller.BaseApiController;
import com.ydd.framework.core.exception.ServiceException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;
@@ -24,7 +25,7 @@ import javax.annotation.Resource;
public class OrderController extends BaseApiController {
private final Logger logger = LoggerFactory.getLogger(OrderController.class);
@Resource
private OrderService orderService;
@@ -71,7 +72,7 @@ public class OrderController extends BaseApiController {
@RequestMapping(value = "/order/recharge", method = RequestMethod.POST)
@AccessToken
public ResponseDTO recharge(@RequestParam("rechargeId") Integer rechargeId){
return ResponseDTO.ok().
addAttribute("pay",orderService.createRecharge(getLoginMemberId(),PlatformContext.getValue(),rechargeId,RequestUtils.getIp()));
throw new ServiceException("请优先使用实时支付,暂不支持余额充值!");
// return ResponseDTO.ok().addAttribute("pay",orderService.createRecharge(getLoginMemberId(),PlatformContext.getValue(),rechargeId,RequestUtils.getIp()));
}
}