diff --git a/.env.example b/.env.example index ee7039ed..4f0e496c 100644 --- a/.env.example +++ b/.env.example @@ -7,6 +7,8 @@ APP_TIMEZONE=PRC APP_FORCE_HTTPS=false ASSET_URL= +BEIKE_API_URL=https://beikeshop.com + LOG_CHANNEL=stack LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=debug diff --git a/beike/Config/beike.php b/beike/Config/beike.php index 78573710..39d20653 100644 --- a/beike/Config/beike.php +++ b/beike/Config/beike.php @@ -10,6 +10,7 @@ */ return [ + 'api_url' => env('BEIKE_API_URL', 'https://beikeshop.com'), 'version' => '1.0.3', 'build' => '20220920', ]; diff --git a/beike/Installer/Helpers/EnvironmentManager.php b/beike/Installer/Helpers/EnvironmentManager.php index 4d9c4d66..469fedf2 100644 --- a/beike/Installer/Helpers/EnvironmentManager.php +++ b/beike/Installer/Helpers/EnvironmentManager.php @@ -109,6 +109,7 @@ class EnvironmentManager 'APP_DEBUG=false' . "\n" . 'APP_LOG_LEVEL=' . $request->app_log_level . "\n" . 'APP_URL=' . $appUrl . "\n\n" . + 'BEIKE_API_URL=https://beikeshop.com' . "\n\n" . 'DB_CONNECTION=' . $request->database_connection . "\n" . 'DB_HOST=' . $request->database_hostname . "\n" . 'DB_PORT=' . $request->database_port . "\n" .