public function actionEditadminuser()
 {
     $user = new AdminUser();
     if (!$user->checkUserIsLogin()) {
         $this->redirect(Variable::$home_url);
         return;
     }
     $req = Yii::$app->request;
     //创建一个请求对象
     $form = new AdminUserForm();
     $form->setScenario('update');
     $adminUserModel = new AdminUser();
     $id = trim($req->get('id'));
     if (!is_numeric($id) || $id == 0) {
         $this->redirect(Variable::$adminUserManger_url);
         return;
     }
     //修改
     if ($form->load($req->post()) && $form->validate()) {
         $isSuccess = $adminUserModel->updateAdminUser($id, $form->password, $form->mobile, $form->role, $form->status);
         if ($isSuccess) {
             $form->addError('', '资料更新成功');
         } else {
             $form->addError('', '资料更新失败');
         }
     }
     $adminUserModel = $adminUserModel->findUserByUserId($id);
     $form->username = $adminUserModel->username;
     $form->password = $adminUserModel->password;
     $form->role = $adminUserModel->role;
     $form->mobile = $adminUserModel->mobile;
     $form->status = $adminUserModel->status;
     return $this->render(Variable::$editAdminUser_view, ['model' => $form, 'adminUserModel' => $adminUserModel]);
 }