fixbug 展示退款金额有误 & 关闭余额充值服务
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user