mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-15 15: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;
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ public class AdapayMemberService {
|
|||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
|
@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
|
||||||
public void createMember(SettleAccountDTO dto) throws BaseAdaPayException, BusinessException {
|
public void createMember(SettleAccountDTO dto) throws BaseAdaPayException, BusinessException {
|
||||||
AdapayMemberAccount adapayMemberAccount = adapayMemberAccountService.selectByMerchantId(dto.getMerchantId());
|
AdapayMemberAccount adapayMemberAccount = adapayMemberAccountService.selectByMerchantId(dto.getMerchantId());
|
||||||
if (adapayMemberAccount != null) {
|
if (adapayMemberAccount != null) {
|
||||||
log.error("通过merchantId:{}, 没有查询到结算账户配置", dto.getMerchantId());
|
log.error("通过merchantId:{}, 没有查询到结算账户配置", dto.getMerchantId());
|
||||||
|
|||||||
Reference in New Issue
Block a user