- Delete unused params for gitlab.

This commit is contained in:
caoyanyi
2024-01-03 13:39:43 +08:00
parent 045adc1ee8
commit 7240b46dc7
5 changed files with 34 additions and 109 deletions
+2 -4
View File
@@ -282,9 +282,7 @@ class gitlab extends control
public function webhook()
{
$this->gitlab->webhookCheckToken();
$product = $this->get->product;
$gitlab = $this->get->gitlab;
$project = $this->get->project;
$gitlab = $this->get->gitlab;
$input = file_get_contents('php://input');
$requestBody = json_decode($input);
@@ -298,7 +296,7 @@ class gitlab extends control
if($result->action == 'closeissue') $this->gitlab->webhookCloseIssue($result);
if($result->action == 'updateissue') $this->gitlab->webhookSyncIssue($gitlab, $result);
if($result->action == 'updateissue') $this->gitlab->webhookSyncIssue($result);
$this->view->result = 'success';
$this->view->status = 'ok';