infra-server修改测试图片,修改minio返回图片拼接路径
| | |
| | | .stream(new ByteArrayInputStream(content), content.length, -1) // 文件内容 |
| | | .build()); |
| | | // 拼接返回路径 |
| | | return config.getDomain() + "/" + path; |
| | | return config.getDomain() + "/" + config.getBucket() + "/" + path; |
| | | } |
| | | |
| | | @Override |
| | |
| | | // 校验存在 |
| | | validateFileConfigExists(id); |
| | | // 上传文件 |
| | | byte[] content = ResourceUtil.readBytes("file/erweima.jpg"); |
| | | byte[] content = ResourceUtil.readBytes("file/common.jpg"); |
| | | return getFileClient(id).upload(content, IdUtil.fastSimpleUUID() + ".jpg", "image/jpeg"); |
| | | } |
| | | |