检测登录状态,防止重复登录 class Base extends Controller { protected function initialize() { parent::initialize(); // 继承父类初始化【防止子类重写】 define(