From 3ff76a0bea9f6ec022fd5255e136cd63280c2f1a Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Thu, 8 Jan 2026 14:37:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(goods):=20=E4=BF=AE=E5=A4=8D=E5=95=86?= =?UTF-8?q?=E5=93=81=E6=9C=8D=E5=8A=A1=E4=B8=AD=E8=A7=86=E9=A2=91=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=8A=B6=E6=80=81=E8=BF=94=E5=9B=9E=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 检查是否有完成的模板,如果没有则返回待处理状态 - 在计数为0时提前返回响应,避免后续处理逻辑执行 --- .../com/ycwl/basic/service/mobile/impl/GoodsServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/ycwl/basic/service/mobile/impl/GoodsServiceImpl.java b/src/main/java/com/ycwl/basic/service/mobile/impl/GoodsServiceImpl.java index 6f4e111d..76c7f9fe 100644 --- a/src/main/java/com/ycwl/basic/service/mobile/impl/GoodsServiceImpl.java +++ b/src/main/java/com/ycwl/basic/service/mobile/impl/GoodsServiceImpl.java @@ -330,8 +330,10 @@ public class GoodsServiceImpl implements GoodsService { // 设置已完成数量和总模板数 response.setCount(count.get()); response.setMaxCount(templateList.size()); + // 检查是否有完成的模板,如果没有则返回待处理 if (count.get() <= 0) { - response.setStatus(VideoTaskStatus.PENDING.getCode()); + response.setStatus(VideoTaskStatus.PENDING.getCode()); + return response; } // ==================== 第四步:根据切片完成状态返回结果 ====================