zwhui 2 年之前
父節點
當前提交
b711c6e979

+ 1 - 1
netflix-service/src/main/java/com/cyksj/service/midjourney/impl/MidjourneyServiceImpl.java

@@ -439,7 +439,7 @@ public class MidjourneyServiceImpl implements MidjourneyService {
 
     private String uploadPic(String url, String prefix) throws IOException {
         byte[] body = HttpUtil.downloadBytes(url);
-        Path tempFile = Files.createTempFile(Path.of("/mnt/pirture"),prefix, ".png");
+        Path tempFile = Files.createTempFile(Path.of("/mnt/picture"),prefix, ".png");
         File file = tempFile.toFile();
         try (FileImageOutputStream imageOutput = new FileImageOutputStream(file)) {
             imageOutput.write(body, 0, body.length);