request->isCli()) { Console::starting(function (Console $console) { $console->addCommands([Fans::class, Auto::class]); }); } else { Library::$sapp->event->listen('WechatFansSubscribe', function ($openid) { AutoService::register($openid); }); }