* Adjust instance visit locate type.

This commit is contained in:
caoyanyi
2023-12-15 13:32:45 +08:00
parent 5c24518e30
commit 2ce259fe3d
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -395,7 +395,7 @@ class instance extends control
* @access public
* @return void
*/
public function visit(int $id, int $externalID = 0): void
public function visit(int $id, int $externalID = 0)
{
if(!commonModel::hasPriv('space', 'browse')) $this->loadModel('common')->deny('space', 'browse', false);
if(!$externalID)
@@ -409,7 +409,7 @@ class instance extends control
$url = $pipeline->url;
}
$this->locate($url);
return $this->send(array('result' => 'success', 'callback' => "window.open('{$url}')"));
}
/**