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