config 优化

This commit is contained in:
Edward Yang 2023-01-11 14:06:50 +08:00
parent 8cf154bbab
commit 671a7f18d0
2 changed files with 6 additions and 4 deletions

View File

@ -24,7 +24,7 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
if (env('APP_FORCE_HTTPS', false)) {
if (config('beike.force_url_https', false)) {
URL::forceScheme('https');
}
}

View File

@ -10,7 +10,9 @@
*/
return [
'api_url' => env('BEIKE_API_URL', 'https://beikeshop.com'),
'version' => '1.2.5',
'build' => '20221226',
'api_url' => env('BEIKE_API_URL', 'https://beikeshop.com'),
'version' => '1.2.5',
'build' => '20221226',
'force_url_https' => env('APP_FORCE_HTTPS', false),
];