Commit 89f77007 authored by liuyuzhen's avatar liuyuzhen

检查是否登录

parent 69c8cd2b
......@@ -146,4 +146,12 @@ class UserController extends \Our\Controller_AbstractIndex {
$this->success(array('userFlag'=>\Our\ApiConst::zero));
}
}
public function isLoginAction(){
$isLogin = \Our\ApiConst::zero;
if(parent::isLogin()){
$isLogin = \Our\ApiConst::one;
}
$this->success(array('isLogin'=>$isLogin));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment