|
|
@@ -183,7 +183,11 @@ public class MidjourneyServiceImpl implements MidjourneyService {
|
|
|
SubmitResult submitResult = Jsons.parseObject(body, SubmitResult.class);
|
|
|
int code = submitResult.getCode();
|
|
|
if (code != 1 && code != 21 && code != 22) {
|
|
|
- throw BusinessRuntimeException.getInstance("action:" + action + " error message:" + submitResult.getDescription());
|
|
|
+ if (code == 24) {
|
|
|
+ throw BusinessRuntimeException.getInstance("prompt包含敏感词");
|
|
|
+ }
|
|
|
+ log.error("action:" + action + " error message:" + submitResult.getDescription());
|
|
|
+ throw BusinessRuntimeException.getInstance("队列已满,请稍后尝试");
|
|
|
}
|
|
|
return submitResult;
|
|
|
}
|