生成结果均低于输出标准时的提示语句更换
This commit is contained in:
@@ -659,10 +659,10 @@ public class GenerateServiceImpl extends ServiceImpl<GenerateMapper, Generate> i
|
|||||||
if (!StringUtil.isNullOrEmpty(generateResultVO.getStatus())) collect.add(generateResultVO.getStatus());
|
if (!StringUtil.isNullOrEmpty(generateResultVO.getStatus())) collect.add(generateResultVO.getStatus());
|
||||||
results.add(generateResultVO);
|
results.add(generateResultVO);
|
||||||
});
|
});
|
||||||
// todo
|
|
||||||
if (taskIdList.size() == 4 && collect.size() == 1 && collect.contains("Fail")) {
|
if (taskIdList.size() == 4 && collect.size() == 1 && collect.contains("Fail")) {
|
||||||
log.info("当前4个生成结果均为失败");
|
log.info("当前4个生成结果均为失败");
|
||||||
throw new BusinessException("generate.interface.error");
|
throw new BusinessException("generate.result.below.standard");
|
||||||
}
|
}
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ you.have.participated.in.the.event=You have participated in the event.
|
|||||||
only.original.works.can.participate.in.the.event=Sorry, only original works can participate in the event.
|
only.original.works.can.participate.in.the.event=Sorry, only original works can participate in the event.
|
||||||
remaining.credits.insufficient=Your remaining credits are insufficient for this generation. Please recharge.
|
remaining.credits.insufficient=Your remaining credits are insufficient for this generation. Please recharge.
|
||||||
you.haven't.subscribed.to.any.products.yet=You haven't subscribed to any products yet
|
you.haven't.subscribed.to.any.products.yet=You haven't subscribed to any products yet
|
||||||
|
generate.result.below.standard=The quality of the generated images currently falls below standard. Please consider adjusting your prompt and trying again.
|
||||||
|
|
||||||
# 可能会报异常
|
# 可能会报异常
|
||||||
# Informative:
|
# Informative:
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ you.have.participated.in.the.event=您已经参与活动。
|
|||||||
only.original.works.can.participate.in.the.event=抱歉,只有原创作品能参与活动。
|
only.original.works.can.participate.in.the.event=抱歉,只有原创作品能参与活动。
|
||||||
remaining.credits.insufficient=您的剩余积分不够本次生成消耗,请充值
|
remaining.credits.insufficient=您的剩余积分不够本次生成消耗,请充值
|
||||||
you.haven't.subscribed.to.any.products.yet=您还未订阅任何产品
|
you.haven't.subscribed.to.any.products.yet=您还未订阅任何产品
|
||||||
|
generate.result.below.standard=当前生成的图像质量低于标准。请考虑调整您的提示词并再次尝试
|
||||||
|
|
||||||
# 可能会报异常
|
# 可能会报异常
|
||||||
# Informative:
|
# Informative:
|
||||||
|
|||||||
Reference in New Issue
Block a user