| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace app\home\controller;
- use think\Lang;
- use think\Cache;
- use think\Request;
- use think\Controller;
- use think\Validate;
- /**
- * 主页管理类
- */
- class Common extends Controller
- {
- /**
- * 构造函数
- *
- * @access public
- */
- public function __construct()
- {
- parent::__construct();
- $this->assign('user_info', $this->systemLogin());
- }// end__construct()
- protected final function systemLogin()
- {
- $user_info = array(
- 'user_id' => session('user_id'),
- 'user_email' => session('user_email'),
- );
- return $user_info;
- }
- }
|