* Add job create unit

This commit is contained in:
zenggang
2023-12-07 09:35:58 +00:00
parent 285bd1e7ef
commit 237e212630
6 changed files with 54 additions and 23 deletions
+4 -4
View File
@@ -146,9 +146,9 @@ class gitlabModel extends model
* @param int $gitlabID
* @param string $zentaoAccount
* @access public
* @return array
* @return string
*/
public function getUserIDByZentaoAccount(int $gitlabID, string $zentaoAccount): array
public function getUserIDByZentaoAccount(int $gitlabID, string $zentaoAccount): string
{
return $this->dao->select('openID')->from(TABLE_OAUTH)
->where('providerType')->eq('gitlab')
@@ -1285,9 +1285,9 @@ class gitlabModel extends model
* @param object $hook
* @access public
* @link https://docs.gitlab.com/ee/api/projects.html#add-project-hook
* @return object|array|null
* @return object|array|null|false
*/
public function apiCreateHook(int $gitlabID, int $projectID, object $hooka): object|array|null
public function apiCreateHook(int $gitlabID, int $projectID, object $hook): object|array|null|false
{
if(!isset($hook->url)) return false;