* Use helper::header() instead of header().

This commit is contained in:
朱金勇
2023-07-03 15:26:08 +00:00
parent 3fd6df05e8
commit a3c848d7af
12 changed files with 684 additions and 26 deletions
+3 -3
View File
@@ -734,7 +734,7 @@ class instance extends control
{
if(!$this->checkCneToken())
{
header("HTTP/1.1 401");
helper::setStatus(401);
return print(json_encode(array('code' => 401, 'message' => 'Invalid token.')));
}
@@ -760,7 +760,7 @@ class instance extends control
{
if(!$this->checkCneToken())
{
header("HTTP/1.1 401");
helper::setStatus(401);
return print(json_encode(array('code' => 401, 'message' => 'Invalid token.')));
}
@@ -796,7 +796,7 @@ class instance extends control
{
if(!$this->checkCneToken())
{
header("HTTP/1.1 401");
helper::setStatus(401);
return print(json_encode(array('code' => 401, 'message' => 'Invalid token.')));
}