protected function check_action($action, $id)
 {
     $ret = $id && LoginLgModel::checkAction($action);
     return $ret;
 }
 protected function checkAuth($action)
 {
     $ret = $this->checkLogin();
     if (!$ret) {
         $this->needLogin();
     }
     $ret = LoginLgModel::checkAction($action);
     if ($ret) {
         return $ret;
     }
     $this->returnMsg(3, '您没有权限执行此操作!');
 }