mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-17 16:28:41 +08:00
update 关闭余额充值功能
This commit is contained in:
@@ -57,8 +57,11 @@ public class PayController extends BaseController {
|
|||||||
logger.info("微信支付 param:{}", dto.toString());
|
logger.info("微信支付 param:{}", dto.toString());
|
||||||
RestApiResponse<?> response;
|
RestApiResponse<?> response;
|
||||||
try {
|
try {
|
||||||
|
if (dto != null) {
|
||||||
|
throw new BusinessException("00500005", "充值余额功能暂时下线维护,账户已有余额可以继续使用,推荐使用在线支付订单");
|
||||||
|
}
|
||||||
if (StringUtils.isBlank(dto.getCode()) || StringUtils.isBlank(dto.getAmount())) {
|
if (StringUtils.isBlank(dto.getCode()) || StringUtils.isBlank(dto.getAmount())) {
|
||||||
return new RestApiResponse<>(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
|
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
|
||||||
}
|
}
|
||||||
// 鉴权
|
// 鉴权
|
||||||
String memberId = getMemberIdByAuthorization(request);
|
String memberId = getMemberIdByAuthorization(request);
|
||||||
@@ -79,7 +82,11 @@ public class PayController extends BaseController {
|
|||||||
dto.setDescription("会员充值余额");
|
dto.setDescription("会员充值余额");
|
||||||
Map<String, Object> weixinMap = orderService.weixinPayV3(dto);
|
Map<String, Object> weixinMap = orderService.weixinPayV3(dto);
|
||||||
response = new RestApiResponse<>(ImmutableMap.of("weixinMap", weixinMap));
|
response = new RestApiResponse<>(ImmutableMap.of("weixinMap", weixinMap));
|
||||||
|
} catch (BusinessException e) {
|
||||||
|
logger.warn("充值余额支付warn", e);
|
||||||
|
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
logger.warn("充值余额支付error", e);
|
||||||
response = new RestApiResponse<>();
|
response = new RestApiResponse<>();
|
||||||
}
|
}
|
||||||
return response;
|
return response;
|
||||||
|
|||||||
Reference in New Issue
Block a user