From 836e02fd4649b9d83d26ce264de62e9dc7c5365c Mon Sep 17 00:00:00 2001 From: dengbw Date: Wed, 14 Jun 2023 10:57:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E6=9E=84=E6=96=B0=E5=A2=9E=E7=94=A8?= =?UTF-8?q?=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- market/controllers/api/institution/OrganizationUser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/market/controllers/api/institution/OrganizationUser.php b/market/controllers/api/institution/OrganizationUser.php index 6c64c224..1a564321 100644 --- a/market/controllers/api/institution/OrganizationUser.php +++ b/market/controllers/api/institution/OrganizationUser.php @@ -165,7 +165,7 @@ class OrganizationUser extends BaseController } $addDate = ['topOrgId' => $topOrgId, 'organizationId' => $organizationId, 'uname' => $uname, 'bizId' => $bizId, 'status' => 0, 'teamId' => 0]; - if ($re['userId']) { + if ($re && $re['status'] != -1) { $this->mdSyliveUser->update($addDate, ['userId' => $re['userId']]); $this->return_response([], '绑定用户成功'); } else { @@ -322,4 +322,4 @@ class OrganizationUser extends BaseController } } -} \ No newline at end of file +}