|
@@ -597,8 +597,11 @@ class Systemprint extends Start_Controller {
|
|
$this->data['warehouse'] = $warehouse;
|
|
$this->data['warehouse'] = $warehouse;
|
|
}else{
|
|
}else{
|
|
//未登录不允许访问
|
|
//未登录不允许访问
|
|
- header("location:/");
|
|
|
|
-
|
|
|
|
|
|
+ //header("location:/");
|
|
|
|
+ $user = $this->user->get_api($_SESSION['api']);
|
|
|
|
+ if(empty($user)){
|
|
|
|
+ header("location:/");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
$this->_Template('systemprintmc',$this->data);
|
|
$this->_Template('systemprintmc',$this->data);
|
|
}
|
|
}
|