$mer_id, 'status' => 1, 'is_del' => 0, 'estate' => 1])->field('id,is_phone_service,service_phone')->find(); if ($merchant['is_phone_service']) { $data['customer_service'] = 3; $data['site_service_phone'] = $merchant['service_phone']; } return JsonService::successful($data); } /**网站统计 * @return bool|mixed */ public function get_website_statistics() { return SystemConfigService::get('website_statistics'); } /** * 获取热搜词 */ public function get_host_search() { return JsonService::successful(Search::getHostSearch()); } /**用户协议 * @return mixed */ public function agree() { $data['title'] = SystemConfigService::get('site_name') . '用户付费协议'; $data['content'] = get_config_content('user_agreement'); return JsonService::successful($data); } /**获取pc端头部导航 * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\ModelNotFoundException * @throws \think\exception\DbException */ public function get_home_navigation() { return JsonService::successful(WebRecommend::getWebRecommend()); } }