<?php

namespace app\enterprise\common;

use app\BaseController;
use app\common\middleware\Auth;

/**
 * Description of EnterpriseController
 *
 * @author sgq
 */
class EnterpriseController extends BaseController {

    protected $middleware = [Auth::class];
    protected $user;

    //put your code here
    public function __construct(\think\App $app) {
        parent::__construct($app);
        $this->user = session("user");
        if ($this->user["usertype"] != 2)
            session("user", null);
    }

}
