* Move die to return print.

This commit is contained in:
zhujinyong
2022-02-22 08:42:32 +08:00
parent 8f728c5463
commit b17c3c8206
28 changed files with 405 additions and 411 deletions
+1 -1
View File
@@ -1647,7 +1647,7 @@ class gitlabModel extends model
public function webhookCheckToken()
{
$gitlab = $this->getByID($this->get->gitlab);
if($gitlab->private != $_SERVER["HTTP_X_GITLAB_TOKEN"]) die('Token error.');
if($gitlab->private != $_SERVER["HTTP_X_GITLAB_TOKEN"]) echo 'Token error.';
}
/**