From 60286ba9b421ff2f503fbbe9e01b75a2c13fb1e9 Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Mon, 4 Dec 2023 23:47:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96=E4=BC=81?= =?UTF-8?q?=E4=B8=9A=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cloudfunctions/router/service/client/user/pub/getCompany.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uniCloud-aliyun/cloudfunctions/router/service/client/user/pub/getCompany.js b/uniCloud-aliyun/cloudfunctions/router/service/client/user/pub/getCompany.js index 40cf28b..35d4494 100644 --- a/uniCloud-aliyun/cloudfunctions/router/service/client/user/pub/getCompany.js +++ b/uniCloud-aliyun/cloudfunctions/router/service/client/user/pub/getCompany.js @@ -17,7 +17,7 @@ module.exports = { } if (!vk.pubfn.isNull(data.keyword)) whereJson['company.companyName'] = new RegExp(data.keyword); if (!vk.pubfn.isNull(data.isCoop)) whereJson.isCoop = data.isCoop; - if (data.province.length > 0) { + if (vk.pubfn.isNull(data.isCoop) && data.province.length > 0) { whereJson['businessCard.address.province.code'] = _.in(data.province); } if (data.mainSpotCategoryIds.length > 0) {