Pu Zhibing
21 小时以前 954dd6d15ad6a32098f252e7db52459231566b2b
user/guns-admin/src/main/java/com/supersavedriving/user/modular/api/AppUserController.java
@@ -296,8 +296,8 @@
            name = UUIDUtil.getRandomCode() + name.substring(name.lastIndexOf("."));
            File file1 = FileUtil.writeFromStream(inputStream, new File(filePath + name));
            HttpRequest post = HttpUtil.createPost(adminUrl + "/upload/image");
            HttpRequest form = post.form("file", file1);
            HttpResponse execute = form.execute();
            post.form("file", file1);
            HttpResponse execute = post.execute();
            int status = execute.getStatus();
            if(200 != status){
                throw new RuntimeException("上传图片异常");