PriceLogService::make()->getCounts(1), 'banners' => [ 'zh' => AdService::make()->getListByType(1,'zh',6), 'en' => AdService::make()->getListByType(1,'en',6) ], 'siteInfo' => [ 'site_name' => ConfigService::make()->getConfigByCode('site_name', 'SBT'), 'site_title' => ConfigService::make()->getConfigByCode('site_name', 'SBT'), 'logo' => get_image_url(ConfigService::make()->getConfigByCode('site_logo', '/images/logo.png')), 'version'=> ConfigService::make()->getConfigByCode('app_version', 'v1.2.10'), ], ]; RedisService::set($cacheKey, $data, rand(30, 60)); } $data['pledgeCounts'] = PledgeOrderService::make()->getCountByUser($this->userId); return showJson(1010,true, $data); } /** * SBD价格数据 * @return array */ public function priceData(){ $dateType = request()->post('type', 1); $refresh = request()->post('refresh', 0); return showJson(1010,true, PriceLogService::make()->getCounts($dateType, $refresh)); } }