宝体数据调用接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
673 B

<?php
namespace app\store\controller;
use app\store\model\Store as StoreModel;
/**
* 后台首页
* Class Index
* @package app\store\controller
*/
class Index extends Controller
{
/**
* 后台首页
* @return mixed
* @throws \think\Exception
* @throws \think\exception\DbException
*/
public function index()
{
// 当前用户菜单url
$menus = $this->menus();
$url = current(array_values($menus))['index'];
if ($url !== 'index/index') {
$this->redirect($url);
}
$model = new StoreModel;
return $this->fetch('index', ['data' => $model->getHomeData()]);
}
}