public function login() { $username = "******"; $passwd = "chenlong"; $obj = new UsersAction(); //$result =$obj->getToken($username,$passwd); $result = $obj->getRefreshAccessToken($username); p($result); }
public function _initialize() { parent::_initialize(); $this->_mod = D('items'); $info = $this->visitor->get(); $this->assign('info', $info); }
public function _initialize() { parent::_initialize(); //访问者控制 if (!$this->visitor->is_login) { IS_AJAX && $this->ajaxReturn(0, L('login_please')); $this->redirect('user/login'); } }
public function _initialize() { parent::_initialize(); //访问者控制 if (!$this->visitor->is_login) { IS_AJAX && $this->ajaxReturn(0, L('login_please')); $this->redirect('user/login'); } $this->_sign_mod = D('sign'); $this->_user_mod = D('user'); $this->_sign_log_mod = D('sign_log'); $this->_score_log_mod = D('score_log'); }