* Add GitLab and ZenTao user binding status.

This commit is contained in:
dingguodong
2021-10-11 16:21:11 +08:00
parent d9b19205b8
commit c0764bb1e9
6 changed files with 16 additions and 6 deletions
+6 -6
View File
@@ -85,30 +85,30 @@ class gitlabModel extends model
/**
* Get gitlab user id and zentao account pairs of one gitlab.
*
* @param int $gitlab
* @param int $gitlabID
* @access public
* @return array
*/
public function getUserIdAccountPairs($gitlab)
public function getUserIdAccountPairs($gitlabID)
{
return $this->dao->select('openID,account')->from(TABLE_OAUTH)
->where('providerType')->eq('gitlab')
->andWhere('providerID')->eq($gitlab)
->andWhere('providerID')->eq($gitlabID)
->fetchPairs();
}
/**
* Get zentao account gitlab user id pairs of one gitlab.
*
* @param int $gitlab
* @param int $gitlabID
* @access public
* @return array
*/
public function getUserAccountIdPairs($gitlab)
public function getUserAccountIdPairs($gitlabID)
{
return $this->dao->select('account,openID')->from(TABLE_OAUTH)
->where('providerType')->eq('gitlab')
->andWhere('providerID')->eq($gitlab)
->andWhere('providerID')->eq($gitlabID)
->fetchPairs();
}