render('index'); } public function actionLogin() { if($this->isLogin){ $this->redirect(['main/index']); Yii::$app->end(); } return $this->renderPartial('login'); } /** * 重复登陆,记录登陆名 */ public function actionRelogin() { return $this->renderPartial('relogin'); } public function actionLogout() { xhWxOpenAdminService::logout();//不注销所有的 用户会话数据 $this->redirect(['main/login']); } public function actionCheckLogin() { $request = Yii::$app->request; $mobile = $request->post('mobile'); $password = $request->post('password'); $return = xhWxOpenAdminService::loginByMobile($mobile, $password,true);//true 自动登陆 if($return){ util::successInfo('success'); } util::failInfo('帐号或密码错误'); } public function actionRunning() { return $this->render('running'); } public function actionBook() { return $this->render('book'); } }