Accountsafe.php 602 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace app\user\controller;
  3. use think\Controller;
  4. use think\Lang;
  5. use think\Validate;
  6. class Accountsafe extends UserControl
  7. {
  8. public function _initialize()
  9. {
  10. parent::_initialize();
  11. Lang::load(APP_PATH . 'admin/lang/' . config('default_lang') . '/login.lang.php');
  12. }
  13. /**
  14. * 账户安全
  15. * @return mixed
  16. */
  17. public function index()
  18. {
  19. $user_info = $this->getAdminInfo();
  20. $user = db('user')->where('user_id',$user_info['user_id'])->find();
  21. $this->assign('user', $user);
  22. return $this->fetch();
  23. }
  24. }
  25. ?>