|
|
|
@ -95,6 +95,7 @@ public class Midjourney {
|
|
|
|
|
|
|
|
|
|
// 检查响应状态
|
|
|
|
|
if (responseJson.getIntValue("code") != 0) {
|
|
|
|
|
System.out.println(responseJson);
|
|
|
|
|
String errorMsg = "Midjourney imagine失败: " + responseJson.getString("msg");
|
|
|
|
|
log.error(errorMsg);
|
|
|
|
|
throw new Exception(errorMsg);
|
|
|
|
|