disableQueryLog(); $this->info(date('m-d H:i:s') . ' 开始整理'); $this->stat(); $this->info(date('m-d H:i:s') . ' 整理结束'); } public function stat() { $res = config('douyin.app_info'); foreach($res as $appInfo){ $accesstoken = AccessTokenService::getAccessToken($appInfo['app_id'], 'AccessTokenDsUpdate'); $this->info(date('m-d H:i:s') . '小程序appid:'. $appInfo['app_id'] .' accesstoken:'. $accesstoken); } } }