*Add batch update, assign, function in the story model.

This commit is contained in:
lichengjun
2021-07-05 13:26:49 +08:00
parent b840895478
commit 30f8f51e3b
5 changed files with 32 additions and 30 deletions
-20
View File
@@ -275,25 +275,6 @@ class gitlabModel extends model
return json_decode(commonModel::http($url, $data, $options));
}
/**
* Send an api post request.
*
* @param int|string $host gitlab server ID | gitlab host url.
* @param int $api
* @param int $data
* @param int $options
* @access public
* @return object
*/
public function apiGet($host, $api, $data = array(), $options = array())
{
if(is_numeric($host)) $host = $this->getApiRoot($host);
if(strpos($host, 'http://') !== 0 and strpos($host, 'https://') !== 0) return false;
$url = sprintf($apiRoot, $api);
return json_decode(commonModel::http($url, $data, $options));
}
/**
* Get current user.
*
@@ -570,7 +551,6 @@ class gitlabModel extends model
$issue = $this->loadModel('gitlab')->parseObjectToIssue($gitlabID, $projectID, $objectType, $object);
if(isset($label->name)) $issue->labels = $label->name;
foreach($this->config->gitlab->skippedFields->issueCreate[$objectType] as $field)
{
if(isset($issue->$field)) unset($issue->$field);