|
|
@@ -537,8 +537,8 @@ public class MidjourneyServiceImpl implements MidjourneyService {
|
|
|
if (code == 4) {
|
|
|
throw BusinessRuntimeException.getInstance(submitResult.getDescription());
|
|
|
}else if (code == 24) {
|
|
|
- JSONObject jsonObject = JSONUtil.parseObj(submitResult.getResult());
|
|
|
- throw BusinessRuntimeException.getInstance("prompt包含敏感词:"+jsonObject.getStr("bannedWord"));
|
|
|
+ Map<String, Object> properties = submitResult.getProperties();
|
|
|
+ throw BusinessRuntimeException.getInstance("prompt包含敏感词:"+properties.get("bannedWord"));
|
|
|
}else {
|
|
|
log.error("action:" + action + " error message:" + submitResult.getDescription());
|
|
|
throw BusinessRuntimeException.getInstance("该任务源Mj账号队列已满,请稍后尝试");
|