config 优化
This commit is contained in:
parent
8cf154bbab
commit
671a7f18d0
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue