Commit 4d0e9fc9 authored by tufengqi's avatar tufengqi

外层怕配置逻辑修改

parent fb06bdb6
<?php
defined('SERVICE_FORCE_VERSION_KEY') || define('SERVICE_FORCE_VERSION_KEY', 'thrift_impl_version');
require_once __DIR__ . '/InitAppHelper.php';
require $app_package_path . 'LoadConfig.php';
$cookie_version = $_COOKIE[SERVICE_FORCE_VERSION_KEY] ?? '';
$cookie_version = $cookie_version ? : ($_COOKIE[VERSION_KEY] ?? '');
$cookie_version = trim($cookie_version);
......@@ -81,7 +82,8 @@ if (true === $location_default_version) {
throw new Exception('服务器代码定位错误');
}
}
require_once $app_package_path . 'LoadConfig.php';
// 重载外层配置路径
require $app_package_path . 'LoadConfig.php';
defined('YII_DEBUG') || define('YII_DEBUG', true);
defined('YII_ENV_DEV') || define('YII_ENV_DEV', 'dev');
defined('APP_FOLDER') || define('APP_FOLDER', 'application');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment