|
|
@@ -880,27 +880,27 @@ public class SecondGoodsServiceImpl extends ServiceImpl<SecondGoodsMapper, Secon
|
|
|
}
|
|
|
|
|
|
// 视频审核
|
|
|
- List<String> taskIds = performVideoReviews(goods, goodsDTO);
|
|
|
-
|
|
|
- // 如果成功提交了视频审核任务,设置商品状态为审核中
|
|
|
- if (!taskIds.isEmpty()) {
|
|
|
- goods.setGoodsStatus(SecondGoodsStatusEnum.UNDER_REVIEW.getCode()); // 审核中
|
|
|
- goods.setVideoTaskId(taskIds.get(0)); // 保存第一个任务ID到商品表
|
|
|
- goods.setFailedReason("");
|
|
|
- updateById(goods);
|
|
|
- // 审核中审核记录
|
|
|
- createGoodsAudit(goods, "", Constants.AuditStatus.UNDER_REVIEW);
|
|
|
- // 审核中,记录操作历史
|
|
|
-// recordGoodsOperation(goods);
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- List<String> videoUrls = extractVideoUrls(goodsDTO.getImgUrl());
|
|
|
- if (videoUrls.isEmpty()) {
|
|
|
- // ai 审核
|
|
|
- secondGoodsAuditService.performSecondRoundReview(goods, goodsDTO);
|
|
|
- return;
|
|
|
- }
|
|
|
+// List<String> taskIds = performVideoReviews(goods, goodsDTO);
|
|
|
+//
|
|
|
+// // 如果成功提交了视频审核任务,设置商品状态为审核中
|
|
|
+// if (!taskIds.isEmpty()) {
|
|
|
+// goods.setGoodsStatus(SecondGoodsStatusEnum.UNDER_REVIEW.getCode()); // 审核中
|
|
|
+// goods.setVideoTaskId(taskIds.get(0)); // 保存第一个任务ID到商品表
|
|
|
+// goods.setFailedReason("");
|
|
|
+// updateById(goods);
|
|
|
+// // 审核中审核记录
|
|
|
+// createGoodsAudit(goods, "", Constants.AuditStatus.UNDER_REVIEW);
|
|
|
+// // 审核中,记录操作历史
|
|
|
+//// recordGoodsOperation(goods);
|
|
|
+// return;
|
|
|
+// }
|
|
|
+
|
|
|
+// List<String> videoUrls = extractVideoUrls(goodsDTO.getImgUrl());
|
|
|
+// if (videoUrls.isEmpty()) {
|
|
|
+// // ai 审核
|
|
|
+// secondGoodsAuditService.performSecondRoundReview(goods, goodsDTO);
|
|
|
+// return;
|
|
|
+// }
|
|
|
|
|
|
// 审核通过后上架商品
|
|
|
approveAndListGoods(goods);
|