'oss_domain', 'desc' => 'oss域名', 'type' => 'string'], ['name' => 'web_name', 'desc' => '站点名称', 'type' => 'string'], ['name' => 'web_favicon', 'desc' => '站点图标', 'type' => 'string'], ['name' => 'web_logo', 'desc' => '站点logo', 'type' => 'string'], ['name' => 'login_image', 'desc' => '登录页背景图', 'type' => 'string'], ['name' => 'copyright_config', 'desc' => '版权信息', 'type' => 'array'], ]), ] public function getConfig() { $data = ConfigLogic::getConfig(); return $this->data($data); } public function dict() { $type = $this->request->get('type', ''); $data = ConfigLogic::getDictByType($type); return $this->data($data); } public function province() { $list = Db::name('geo_province')->select()->toArray(); return $this->success('ok', $list); } public function city() { $province_code = $this->request->get('code'); $list = Db::name('geo_city')->where('province_code', $province_code)->select()?->toArray(); return $this->success('ok', $list); } public function area() { $city_code = $this->request->get('code'); $list = Db::name('geo_area')->where('city_code', $city_code)->select()?->toArray(); return $this->success('ok', $list); } public function street() { $area_code = $this->request->get('code'); $list = Db::name('geo_street')->where('area_code', $area_code)->select()?->toArray(); return $this->success('ok', $list); } }