mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 20:28:44 +08:00 
			
		
		
		
	@@ -230,7 +230,7 @@ public class FileConfigServiceImpl implements FileConfigService {
 | 
			
		||||
        this.validateFileConfigExists(id);
 | 
			
		||||
        // 上传文件
 | 
			
		||||
        byte[] content = ResourceUtil.readBytes("file/erweima.jpg");
 | 
			
		||||
        return fileClientFactory.getFileClient(id).upload(content, IdUtil.fastSimpleUUID() + ".jpg");
 | 
			
		||||
        return fileClientFactory.getFileClient(id).upload(content, IdUtil.fastSimpleUUID() + ".jpg", "image/jpeg");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
 
 | 
			
		||||
@@ -52,7 +52,7 @@ public class FileServiceImpl implements FileService {
 | 
			
		||||
        // 上传到文件存储器
 | 
			
		||||
        FileClient client = fileConfigService.getMasterFileClient();
 | 
			
		||||
        Assert.notNull(client, "客户端(master) 不能为空");
 | 
			
		||||
        String url = client.upload(content, path);
 | 
			
		||||
        String url = client.upload(content, path, type);
 | 
			
		||||
 | 
			
		||||
        // 保存到数据库
 | 
			
		||||
        FileDO file = new FileDO();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user