feat:小程序版本过低

This commit is contained in:
苏竹红
2025-12-09 18:43:53 +08:00
parent c6310e7a96
commit f87b1ca866
2 changed files with 4 additions and 0 deletions

View File

@@ -327,6 +327,7 @@ public enum ErrorCodeEnum {
WALLET_OPEN_ACCOUNT_FAIL(1620001,"钱包开通失败",null), WALLET_OPEN_ACCOUNT_FAIL(1620001,"钱包开通失败",null),
WALLET_WITH_DRAWER_FAIL(1620002,"提现失败",null), WALLET_WITH_DRAWER_FAIL(1620002,"提现失败",null),
WALLET_API_ERROR(1620003,"{0}",null), WALLET_API_ERROR(1620003,"{0}",null),
MINI_PROGRAM_VERSION_TOO_LOW(1620004,"小程序版本过低,请刷新小程序再操作!",null),
// 171闭店 // 171闭店
CLOSE_STORE_SUB_STAGE_ERROR(171002, "当前流程状态异常", null), CLOSE_STORE_SUB_STAGE_ERROR(171002, "当前流程状态异常", null),

View File

@@ -560,6 +560,9 @@ public class WalletServiceImpl implements WalletService {
@Override @Override
public Boolean openOnlineBankAccount(CoolOpenBasicInfoRequest request) { public Boolean openOnlineBankAccount(CoolOpenBasicInfoRequest request) {
if (StringUtils.isBlank(request.getLegalSignerRelation())) {
throw new ServiceException(ErrorCodeEnum.MINI_PROGRAM_VERSION_TOO_LOW);
}
//首先存储提交的信息 //首先存储提交的信息
OpenBankInfoDO openBankInfoDO = new OpenBankInfoDO(); OpenBankInfoDO openBankInfoDO = new OpenBankInfoDO();
BeanUtil.copyProperties(request, openBankInfoDO); BeanUtil.copyProperties(request, openBankInfoDO);