* Modify gitlab to git service in repo module.

This commit is contained in:
liyuchun
2022-07-14 00:53:13 +00:00
parent 202541b418
commit 6102e2df6a
4 changed files with 7 additions and 8 deletions
+2 -2
View File
@@ -131,8 +131,8 @@ class gitModel extends model
$gitlabAccountPairs = array();
if($repo->SCM == 'Gitlab')
{
$gitlabUserList = $this->loadModel('gitlab')->apiGetUsers($repo->gitlab);
$acountIDPairs = $this->gitlab->getUserIdAccountPairs($repo->gitlab);
$gitlabUserList = $this->loadModel('gitlab')->apiGetUsers($repo->gitService);
$acountIDPairs = $this->gitlab->getUserIdAccountPairs($repo->gitService);
foreach($gitlabUserList as $gitlabUser) $gitlabAccountPairs[$gitlabUser->realname] = zget($acountIDPairs, $gitlabUser->id, '');
}