| | |
| | | return ERROR; |
| | | } |
| | | } |
| | | public static void main(String[] args) { |
| | | String bankName = "中国工商银行"; // 要转换为简写的银行名称 |
| | | |
| | | Pattern pattern = Pattern.compile("([\\u4e00-\\u9fa5]+)(?=\\s+[A-Za-z]+$)"); |
| | | Matcher matcher = pattern.matcher(bankName); |
| | | if (matcher.find()) { |
| | | System.out.println(matcher.group()); // 输出结果:"工商银行" -> "ICBC" |
| | | } else { |
| | | System.out.println("无法识别该银行名称!"); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 支付宝商户认证提交 |
| | | */ |
| | |
| | | operatorAuth.setShopProvince(shopProvince); |
| | | operatorAuth.setShopProvinceCode(shopProvinceCode); |
| | | operatorAuth.setShopCityCode(shopCityCode); |
| | | if(StringUtils.hasLength(province)&& province.equals("请选择省")){ |
| | | operatorAuth.setProvince(null); |
| | | } |
| | | if(StringUtils.hasLength(city)&& province.equals("请选择市")){ |
| | | operatorAuth.setCity(null); |
| | | } |
| | | operatorAuth.setProvince(province); |
| | | operatorAuth.setProvinceCode(provinceCode); |
| | | operatorAuth.setShopDistrict(shopDistrict); |
| | |
| | | " \"mobile\":\""+phone+"\"," + |
| | | " }" + |
| | | " ],"; |
| | | |
| | | // todo 拼接 |
| | | String biz_cards=" \"biz_cards\":[" + |
| | | " {" + |
| | |
| | | if (accountType.equals("bankCard")){ |
| | | request.setBizContent(param |
| | | + biz_cards+res); |
| | | }else{ |
| | | request.setBizContent(param |
| | | +res); |
| | | } |
| | | AntMerchantExpandIndirectZftCreateResponse response = null; |
| | | try { |