* The control::locate return 1 always.

This commit is contained in:
dingguodong
2023-05-03 14:32:42 +08:00
parent 1b3429151c
commit 625d5f3d76
+3 -3
View File
@@ -1155,11 +1155,11 @@ class baseControl
*
* @param string $url the target url.
* @access public
* @return void
* @return int
*/
public function locate($url)
public function locate($url): int
{
header("location: $url");
exit;
return 1;
}
}