| | |
| | | throw new YamiShopBindException("Parameter value 1 is required"); |
| | | } |
| | | } |
| | | if (model.getReal_name().length() > 20) { |
| | | /*if (model.getReal_name().length() > 20) { |
| | | if (language.equals("zh-CN")) { |
| | | throw new YamiShopBindException("真实姓名长度大于20"); |
| | | } else { |
| | | throw new YamiShopBindException("Real name length greater than 20"); |
| | | } |
| | | } |
| | | if (model.getRemark().length() > 100) { |
| | | }*/ |
| | | /*if (model.getRemark().length() > 100) { |
| | | if (language.equals("zh-CN")) { |
| | | throw new YamiShopBindException("备注长度大于100"); |
| | | } else { |
| | | throw new YamiShopBindException("Note length greater than 100"); |
| | | } |
| | | } |
| | | }*/ |
| | | C2cPaymentMethodConfig methodConfig = c2cPaymentMethodConfigService.getById(model.getMethod_config_id()); |
| | | if (null == methodConfig) { |
| | | |
| | |
| | | } |
| | | } |
| | | if (!StrUtil.isEmpty(model.getParam_value1())) { |
| | | if (model.getParam_value1().length() > 25) { |
| | | /*if (model.getParam_value1().length() > 25) { |
| | | if (language.equals("zh-CN")) { |
| | | throw new YamiShopBindException(methodConfig.getParamName1() + "长度大于25"); |
| | | } else { |
| | | throw new YamiShopBindException(model.getParam_value1() + " length greater than 25"); |
| | | } |
| | | } |
| | | }*/ |
| | | } |
| | | if (!StrUtil.isEmpty(model.getParam_value2())) { |
| | | if (model.getParam_value2().length() > 25) { |
| | | /*if (model.getParam_value2().length() > 25) { |
| | | if (language.equals("zh-CN")) { |
| | | throw new YamiShopBindException(methodConfig.getParamName2() + "长度大于25"); |
| | | } else { |
| | | throw new YamiShopBindException(model.getParam_value2() + " length greater than 25"); |
| | | } |
| | | } |
| | | }*/ |
| | | } |
| | | String partyId = SecurityUtils.getUser().getUserId(); |
| | | if (null == partyId) { |