| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- return [
- /*
- |--------------------------------------------------------------------------
- | OpenAPI模块配置
- |--------------------------------------------------------------------------
- |
- | OpenAPI模块的基础配置选项,专注于后台管理功能
- |
- */
- // 模块基础配置
- 'module' => [
- 'name' => 'OpenAPI',
- 'version' => '1.0.0',
- 'description' => '对外开放API管理模块',
- 'author' => 'System',
- ],
- // 应用配置
- 'app' => [
- 'auto_approve' => false, // 是否自动审核通过
- 'default_status' => 'PENDING',
- 'expire_days' => 365, // 应用过期天数
- 'max_apps_per_user' => 10,
- 'required_fields' => [
- 'name',
- 'description',
- 'callback_url',
- ],
- 'optional_fields' => [
- 'website',
- 'logo',
- 'contact_email',
- ],
- ],
- // API密钥配置
- 'api_key' => [
- 'length' => 32,
- 'prefix' => 'ak_',
- 'secret_length' => 64,
- 'secret_prefix' => 'sk_',
- 'auto_generate' => true,
- 'allow_regenerate' => true,
- 'expire_days' => 0, // 0表示永不过期
- ],
- ];
|