| | |
| | | String originName = file.getOriginalFilename(); |
| | | AtomicBoolean isVideo = new AtomicBoolean(false); |
| | | videoExtensionAllow.forEach(ext ->{ |
| | | if(ext.equalsIgnoreCase(originName)){ |
| | | String originNameLowerCase = originName.toLowerCase(); |
| | | if(originNameLowerCase.endsWith("." +ext)){ |
| | | isVideo.set(true); |
| | | } |
| | | }); |
| | |
| | | } |
| | | } catch (WxErrorException e) { |
| | | log.error("微信审核图片出错【{}】", e.getMessage()); |
| | | e.printStackTrace(); |
| | | return R.fail("图片上传失败"); |
| | | // e.printStackTrace(); |
| | | } |
| | | sftp.uploadMore(FtpConstants.FTPFILEPATH_IDCARD, name, is); |
| | | sftp.logout(); |