| | |
| | | .build()); |
| | | |
| | | String urls = "http://223.82.109.183:2081/zhba/" + newName; |
| | | //内网 |
| | | String inUrl = ip + newName; |
| | | //取出身份证号,查询用户信息,更新用户信息 |
| | | String pictrueName = multipartFile.getName().substring(0, multipartFile.getName().lastIndexOf(".")); |
| | | // String regex ="([1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx])|([1-9]\\d{5}\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3})"; |
| | |
| | | |
| | | //内网数据推送 |
| | | //数据推送 |
| | | String s = "update blade_user set avatar = " + "'" + urls + "'" + "where id = " + "'" + user.getId() + "'"; |
| | | String s = "update blade_user set avatar = " + "'" + inUrl + "'" + "where id = " + "'" + user.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s); |
| | | |
| | | //文件推送 |
| | |
| | | } |
| | | } |
| | | //最后要删除文件 |
| | | FileUtil.clearFiles(FileConfig.localtion + File.separator + file.getOriginalFilename()); |
| | | FileUtil.clearFiles(desPath); |
| | | //数据封装 |
| | | map.put("data", "上传成功!"); |