aebcd4f8 by yangjianbin

init

1 parent acefaac5
......@@ -13,6 +13,20 @@ class CheckLogin
public function check()
{
$session = $this->CI->session;
/*if (preg_match("/admin|base/i", uri_string())) {
if(!$this->CI->session->isadmin){
redirect('login');
return;
}
}*/
if (preg_match('/work/config/data/finance/loan/perm/tool/user/i', uri_string())) {
if (!$this->CI->session->islogin) {
redirect('login');
return;
}
}
// if (!$session->products) {
$session->products = $this->getProduct();
// }
......@@ -89,18 +103,7 @@ class CheckLogin
if (!$session->sourceBaseType) {
$session->sourceBaseType = $this->getSourceBaseType();
}
/*if (preg_match("/admin|base/i", uri_string())) {
if(!$this->CI->session->isadmin){
redirect('login');
return;
}
}
if (preg_match('/ucenter/i', uri_string())) {
if (!$this->CI->session->islogin) {
redirect('login/app');
return;
}
}*/
}
private function getProduct()
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!