From 54acf6a447dc190504379c397d9a10a81fa67698 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Wed, 30 Aug 2023 16:27:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AE=A2=E5=8D=95=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=B1=87=E6=80=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/Auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index b07e887a..51911119 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -1101,7 +1101,7 @@ class Auth extends BaseController if ($villageCode) { $villageCodeArray = explode(',', $villageCode); if (count($villageCodeArray) == 1) { - $villageIdArray = Db::name('GeoVillage')->where('village_code', $villageCodeArray)->fetchSql(false)->column('village_id'); + $villageIdArray = Db::name('GeoVillage')->where('village_code', $villageCode)->fetchSql(false)->column('village_id'); } if (count($villageCodeArray) > 1) { $villageIdArray = Db::name('GeoVillage')->whereIn('village_code', $villageCodeArray)->fetchSql(false)->column('village_id'); @@ -1164,7 +1164,7 @@ class Auth extends BaseController if ($villageCode) { $villageCodeArray = explode(',', $villageCode); if (count($villageCodeArray) == 1) { - $villageIdArray = Db::name('GeoVillage')->where('village_code', $villageCodeArray)->fetchSql(false)->column('village_id'); + $villageIdArray = Db::name('GeoVillage')->where('village_code', $villageCode)->fetchSql(false)->column('village_id'); } if (count($villageCodeArray) > 1) { $villageIdArray = Db::name('GeoVillage')->whereIn('village_code', $villageCodeArray)->fetchSql(false)->column('village_id');