<?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);
    } 
}