From 02d926e91e701e5e8eb7a393ce66c77283c04b51 Mon Sep 17 00:00:00 2001 From: Linzm <1015157648@qq.com> Date: Mon, 9 Nov 2026 16:10:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E4=B8=A5=E6=A0=BC?= =?UTF-8?q?=E5=AF=B9=E6=AF=94=E4=B8=8B=E5=8D=95=E4=B8=BB=E4=BD=93=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E5=92=8C=E5=AF=BC=E5=85=A5=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E7=9A=84=E4=B8=BB=E4=BD=93=E8=AF=86=E5=88=AB=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/jingdong/index.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/jingdong/index.vue b/src/views/jingdong/index.vue index 27050b3..cea316e 100644 --- a/src/views/jingdong/index.vue +++ b/src/views/jingdong/index.vue @@ -416,10 +416,9 @@ function checkSubjectMatch(inspectResult: ImageInspect) { headcount: Number(inspectResult.personCount) || 0, petCount: Number(inspectResult.petCount) || 0, } - // 订单只写了人数时,只比对人数;写了宠物则一并比对 + // 严格比对:订单「1人」不允许识别出「1人+1宠物」 const peopleOk = detected.headcount === orderSubject.headcount - const petOk = - orderSubject.petCount > 0 ? detected.petCount === orderSubject.petCount : true + const petOk = detected.petCount === orderSubject.petCount const matched = peopleOk && petOk subjectMatched.value = matched if (!matched) {