mirror of
http://124.126.16.154:8888/singularity/HyperfDevelopmentKitCore.git
synced 2026-01-15 07:15:06 +08:00
feat: 增加默认api风格参数
This commit is contained in:
@@ -29,6 +29,8 @@ class ApiStyleService
|
||||
|
||||
public function get(): string
|
||||
{
|
||||
return Context::get(self::class);
|
||||
return Context::get(self::class) ?? (config('common.response.restful')
|
||||
? ApiStyleService::RESTFUL
|
||||
: ApiStyleService::CLASSIC);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user