mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 02:08:43 +08:00 
			
		
		
		
	【优化】处理 mj jdk21降到jdk17语法
This commit is contained in:
		| @@ -113,7 +113,7 @@ public class MidjourneyInteractionsApi extends MidjourneyInteractions { | |||||||
|  |  | ||||||
|         // |         // | ||||||
|         // 上传文件 |         // 上传文件 | ||||||
|         String uploadUrl = uploadAttachmentsRes.getAttachments().getFirst().getUploadUrl(); |         String uploadUrl = uploadAttachmentsRes.getAttachments().get(0).getUploadUrl(); | ||||||
|         httpHeaders.setContentType(MediaType.MULTIPART_FORM_DATA); |         httpHeaders.setContentType(MediaType.MULTIPART_FORM_DATA); | ||||||
|         HttpEntity<FileSystemResource> fileSystemResourceHttpEntity = new HttpEntity<>(attachments.getFileSystemResource(), httpHeaders); |         HttpEntity<FileSystemResource> fileSystemResourceHttpEntity = new HttpEntity<>(attachments.getFileSystemResource(), httpHeaders); | ||||||
|         ResponseEntity<String> exchange = restTemplate.exchange(uploadUrl, HttpMethod.PUT, fileSystemResourceHttpEntity, String.class); |         ResponseEntity<String> exchange = restTemplate.exchange(uploadUrl, HttpMethod.PUT, fileSystemResourceHttpEntity, String.class); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 cherishsince
					cherishsince