|
|
@@ -148,7 +148,8 @@ public class MidjourneyServiceImpl implements MidjourneyService {
|
|
|
String body = HttpRequest.post(url).body(Jsons.toJson(param)).header("Authorization", FAST_TOKEN).execute().body();
|
|
|
log.info("action body:{}", body);
|
|
|
SubmitResult submitResult = Jsons.parseObject(body, SubmitResult.class);
|
|
|
- if (submitResult.getCode() != 1) {
|
|
|
+ int code = submitResult.getCode();
|
|
|
+ if (code != 1 && code != 21 && code != 22) {
|
|
|
throw BusinessRuntimeException.getInstance("action:" + action + " error message:" + submitResult.getDescription());
|
|
|
}
|
|
|
return submitResult;
|