| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace app\home\controller;
- use think\Lang;
- use think\Cache;
- use think\Request;
- use think\Controller;
- use think\Validate;
- /**
- * 主页管理类
- */
- class Index extends Common
- {
- /**
- * 构造函数
- *
- * @access public
- */
- public function __construct()
- {
- parent::__construct();
- }// end__construct()
- /**
- * 主页管理
- *
- * @access public
- * @return array JsonString
- */
- public function index()
- {
- $getHomeInformation = model('homeinformation')->getHomeInformation();
- $this->assign('information', $getHomeInformation);
- return $this->fetch();
- }//end index()
- public function isLogin()
- {
- $userId = session('user_id');
- if ($userId) {
- return ["success"=>true];
- } else {
- return ["success"=>false];
- }
- }//end index()
- }
|