* Fix bind user notice error.

This commit is contained in:
zenggang
2023-12-21 08:21:21 +00:00
parent bc16df6cb2
commit a33a89aa2b
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ class gitlab extends control
$users = $this->post->zentaoUsers;
$gitlabNames = $this->post->gitlabUserNames;
$result = $this->gitlabZen->checkUserRepeat($users);
$result = $this->gitlabZen->checkUserRepeat($users, $userPairs);
if($result['result'] != 'success') return $this->send($result);
$this->gitlabZen->bindUsers($gitlabID, $users, $gitlabNames, $zentaoUsers);
+2 -1
View File
@@ -16,10 +16,11 @@ class gitlabZen extends gitlab
* Check bind user repeat.
*
* @param array $zentaoUsers
* @param array $userPairs
* @access protected
* @return array
*/
protected function checkUserRepeat(array $zentaoUsers): array
protected function checkUserRepeat(array $zentaoUsers, array $userPairs): array
{
$accountList = array();
$repeatUsers = array();