2020-12-04 16:30:57 +08:00

32 lines
811 B
PHP
Executable File

<?php
namespace wstmart\home\controller;
/**
* ============================================================================
* 默认控制器
*/
class Index extends Base{
protected $beforeActionList = [
'checkAuth' => ['only'=>'getsysmessages']
];
public function index(){
return $this->fetch('index');
}
/**
* 获取除去比例的最大值
* @param [type] $num [description]
* @param [type] $scale [description]
* @return [type] [description]
*/
private function getMaxNum($num,$scale){
return round($num/$scale,2);
}
/**
* 保存目录ID
*/
public function getMenuSession(){
$menuId = input("post.menuId");
$menuType = session('WST_USER.loginTarget');
session('WST_MENUID3'.$menuType,$menuId);
}
}