diff --git a/app/Controller/Api/SystemController.php b/app/Controller/Api/SystemController.php index 80c27db..d833a4c 100644 --- a/app/Controller/Api/SystemController.php +++ b/app/Controller/Api/SystemController.php @@ -9,6 +9,7 @@ use App\Middleware\Api\JwtAuthMiddleware; use App\Service\Api\System\CityListService; use App\Service\Api\System\MiniWxConfigService; use App\Service\Api\System\SiteListService; +use App\Service\Api\System\SystemConfigService; use Hyperf\HttpServer\Annotation\Controller; use Hyperf\HttpServer\Annotation\Middlewares; use Hyperf\HttpServer\Annotation\RequestMapping; @@ -32,10 +33,17 @@ class SystemController extends AbstractController return (new CityListService)->handle(); } - #[RequestMapping(path: 'mini_wx/config',methods: 'GET')] + #[RequestMapping(path: 'mini_wx/about_us',methods: 'GET')] #[Scene(scene: 'mini_wx_config')] public function getMiniWxConfig() { return (new MiniWxConfigService)->handle(); } + + #[RequestMapping(path: 'config',methods: 'GET')] + #[Scene(scene: 'config')] + public function systemConfig() + { + return (new SystemConfigService)->handle(); + } } diff --git a/app/Service/Api/System/SystemConfigService.php b/app/Service/Api/System/SystemConfigService.php new file mode 100644 index 0000000..d601ec1 --- /dev/null +++ b/app/Service/Api/System/SystemConfigService.php @@ -0,0 +1,42 @@ + $this->configCache->getConfigValueByKey(ConfigCode::APP_LOGO), + ]; + + return $this->return->success('success', $res); + } +} \ No newline at end of file