机构新增用户

This commit is contained in:
dengbw
2023-06-14 10:57:13 +08:00
parent c64f7db0c1
commit 836e02fd46
@@ -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
}
}
}
}