|
|
@@ -197,14 +197,14 @@ public class StoreCuisineController {
|
|
|
// 执行AI审核
|
|
|
if (StringUtils.isNotEmpty(textContent.toString()) || imageUrls.size() > 0) {
|
|
|
AiContentModerationUtil.AuditResult auditResult = aiContentModerationUtil.auditContent(textContent.toString(), imageUrls);
|
|
|
- boolean allPassed = (auditResult != null);
|
|
|
+// boolean allPassed = (auditResult != null);
|
|
|
|
|
|
LambdaUpdateWrapper<StoreCuisine> auditUpdateWrapper = new LambdaUpdateWrapper<>();
|
|
|
auditUpdateWrapper.eq(StoreCuisine::getId, updatedCuisine.getId());
|
|
|
auditUpdateWrapper.set(StoreCuisine::getRejectionReason, null);
|
|
|
auditUpdateWrapper.set(StoreCuisine::getAuditTime, new Date());
|
|
|
|
|
|
- if (allPassed) {
|
|
|
+ if (auditResult.isPassed()) {
|
|
|
// 审核通过 审核状态为1 上架状态为1 已上架
|
|
|
auditUpdateWrapper.set(StoreCuisine::getStatus, 1);
|
|
|
auditUpdateWrapper.set(StoreCuisine::getShelfStatus, 1);
|