|
@@ -32,7 +32,7 @@ abstract class Start_Controller extends Lin_Controller {
|
|
|
{
|
|
{
|
|
|
$this->session->sess_destroy();
|
|
$this->session->sess_destroy();
|
|
|
header("Location:/");
|
|
header("Location:/");
|
|
|
- exit();
|
|
|
|
|
|
|
+ exit("需要添加api免检");
|
|
|
}
|
|
}
|
|
|
if(isset($_SESSION['api']))
|
|
if(isset($_SESSION['api']))
|
|
|
{
|
|
{
|
|
@@ -43,7 +43,7 @@ abstract class Start_Controller extends Lin_Controller {
|
|
|
$action = $this->uri->slash_segment(2);
|
|
$action = $this->uri->slash_segment(2);
|
|
|
if( (strpos($cont,"user") !== false) && (strpos($action,"tc") !== false) ){
|
|
if( (strpos($cont,"user") !== false) && (strpos($action,"tc") !== false) ){
|
|
|
header("Location:/");
|
|
header("Location:/");
|
|
|
- die;
|
|
|
|
|
|
|
+ die("需要重新登录");
|
|
|
}else{
|
|
}else{
|
|
|
unset($_SESSION['api']);
|
|
unset($_SESSION['api']);
|
|
|
$this->session->sess_destroy();
|
|
$this->session->sess_destroy();
|
|
@@ -54,7 +54,7 @@ abstract class Start_Controller extends Lin_Controller {
|
|
|
else if($this->uri->slash_segment(1) == "/")
|
|
else if($this->uri->slash_segment(1) == "/")
|
|
|
{
|
|
{
|
|
|
header("Location:/user/");
|
|
header("Location:/user/");
|
|
|
- die;
|
|
|
|
|
|
|
+ exit("需要到user里");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if(!empty($u)){
|
|
if(!empty($u)){
|