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) {