Authored by Rock Zhang

修复用户未登录时异步请求会跳转到登陆页的bug

... ... @@ -28,11 +28,11 @@ class HomeController extends AbstractAction
// @todo 为了方便测试,支持传uid参数
$uid = $this->getUid();
if (!$uid) {
$this->_uid = $this->get('uid', 8826435); //$this->getUid(true);
// $this->_uid = $this->get('uid', 8826435); //$this->getUid(true);
}
$action = $this->getRequest()->getActionName();
if (!$this->_uid && $action !== 'index') {
if (!$this->_uid && $action !== 'index' && $this->isAjax()) {
$this->go(Helpers::url('/signin.html'));
}
... ...