Commit 288fe6f6 authored by tufengqi's avatar tufengqi

新增ENVphp

parent 6d6f0db8
...@@ -5,9 +5,4 @@ ...@@ -5,9 +5,4 @@
.DS_Store .DS_Store
.idea .idea
.vscode .vscode
/inner_site/cms_otc_api/common-basic.php Env.php
/inner_site/devops/common-basic.php \ No newline at end of file
/thrift_impl/otc/common-basic.php
/thrift_impl/market/common-basic.php
/user_site/inner_zhaobi/common-basic.php
/user_site/zhaobi/common-basic.php
\ No newline at end of file
<?php <?php
$env = include(__DIR__.'/Env.php');
$env = trim($env);
defined('SERVICE_ENV') || define('SERVICE_ENV', $env);
defined('SERVICE_FORCE_VERSION_KEY') || define('SERVICE_FORCE_VERSION_KEY', 'thrift_impl_version'); defined('SERVICE_FORCE_VERSION_KEY') || define('SERVICE_FORCE_VERSION_KEY', 'thrift_impl_version');
require_once __DIR__ . '/InitAppHelper.php'; require_once __DIR__ . '/InitAppHelper.php';
require $app_package_path . 'LoadConfig.php'; require $app_package_path . 'LoadConfig.php';
......
...@@ -5,6 +5,5 @@ $app_package_path = $index_root_path . 'inner_site/'; ...@@ -5,6 +5,5 @@ $app_package_path = $index_root_path . 'inner_site/';
$base_path = $origin_base_path = $index_root_path . 'inner_site/cms_otc_api/'; $base_path = $origin_base_path = $index_root_path . 'inner_site/cms_otc_api/';
defined('VERSION_KEY') || define('VERSION_KEY', 'inner_site_otc_cms_api_version'); defined('VERSION_KEY') || define('VERSION_KEY', 'inner_site_otc_cms_api_version');
$version_path = $index_root_path . 'version/'; $version_path = $index_root_path . 'version/';
defined('SERVICE_ENV') || define('SERVICE_ENV', 'test');
defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'cms_otc_api_main_web.php'); defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'cms_otc_api_main_web.php');
/* 需要修改的参数>> */ /* 需要修改的参数>> */
\ No newline at end of file
...@@ -5,6 +5,5 @@ $app_package_path = $index_root_path . 'inner_site/'; ...@@ -5,6 +5,5 @@ $app_package_path = $index_root_path . 'inner_site/';
$base_path = $origin_base_path = $index_root_path . 'inner_site/devops/'; $base_path = $origin_base_path = $index_root_path . 'inner_site/devops/';
defined('VERSION_KEY') || define('VERSION_KEY', 'inner_site_devops_version'); defined('VERSION_KEY') || define('VERSION_KEY', 'inner_site_devops_version');
$version_path = $index_root_path . 'version/'; $version_path = $index_root_path . 'version/';
defined('SERVICE_ENV') || define('SERVICE_ENV', 'test');
defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'devops_main_web.php'); defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'devops_main_web.php');
/* 需要修改的参数>> */ /* 需要修改的参数>> */
...@@ -5,7 +5,6 @@ $app_package_path = $index_root_path . 'thrift_impl/'; ...@@ -5,7 +5,6 @@ $app_package_path = $index_root_path . 'thrift_impl/';
$base_path = $origin_base_path = $index_root_path . 'thrift_impl/risk-sites/'; $base_path = $origin_base_path = $index_root_path . 'thrift_impl/risk-sites/';
defined('VERSION_KEY') || define('VERSION_KEY', 'thrift_impl_risk_sites_version'); defined('VERSION_KEY') || define('VERSION_KEY', 'thrift_impl_risk_sites_version');
$version_path = $index_root_path . 'version/'; $version_path = $index_root_path . 'version/';
defined('SERVICE_ENV') || define('SERVICE_ENV', 'local');
defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'thrift_impl_risk_sites_main_web.php'); defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'thrift_impl_risk_sites_main_web.php');
defined('APP_FOLDER') || define('APP_FOLDER', basename(__DIR__)); defined('APP_FOLDER') || define('APP_FOLDER', basename(__DIR__));
/* 需要修改的参数>> */ /* 需要修改的参数>> */
\ No newline at end of file
...@@ -5,7 +5,6 @@ $app_package_path = $index_root_path . 'thrift_impl/'; ...@@ -5,7 +5,6 @@ $app_package_path = $index_root_path . 'thrift_impl/';
$base_path = $origin_base_path = $index_root_path . 'thrift_impl/risk-sites/'; $base_path = $origin_base_path = $index_root_path . 'thrift_impl/risk-sites/';
defined('VERSION_KEY') || define('VERSION_KEY', 'thrift_impl_risk_sites_version'); defined('VERSION_KEY') || define('VERSION_KEY', 'thrift_impl_risk_sites_version');
$version_path = $index_root_path . 'version/'; $version_path = $index_root_path . 'version/';
defined('SERVICE_ENV') || define('SERVICE_ENV', 'local');
defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'thrift_impl_risk_sites_main_web.php'); defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'thrift_impl_risk_sites_main_web.php');
defined('APP_FOLDER') || define('APP_FOLDER', basename(__DIR__)); defined('APP_FOLDER') || define('APP_FOLDER', basename(__DIR__));
/* 需要修改的参数>> */ /* 需要修改的参数>> */
\ No newline at end of file
...@@ -5,6 +5,5 @@ $app_package_path = $index_root_path . 'thrift_impl/'; ...@@ -5,6 +5,5 @@ $app_package_path = $index_root_path . 'thrift_impl/';
$base_path = $origin_base_path = $index_root_path . 'thrift_impl/market-service-impl/'; $base_path = $origin_base_path = $index_root_path . 'thrift_impl/market-service-impl/';
defined('VERSION_KEY') || define('VERSION_KEY', 'thrift_impl_market_version'); defined('VERSION_KEY') || define('VERSION_KEY', 'thrift_impl_market_version');
$version_path = $index_root_path . 'version/'; $version_path = $index_root_path . 'version/';
defined('SERVICE_ENV') || define('SERVICE_ENV', 'test');
defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'market_main_web.php'); defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'market_main_web.php');
/* 需要修改的参数>> */ /* 需要修改的参数>> */
\ No newline at end of file
...@@ -5,6 +5,5 @@ $app_package_path = $index_root_path . 'thrift_impl/'; ...@@ -5,6 +5,5 @@ $app_package_path = $index_root_path . 'thrift_impl/';
$base_path = $origin_base_path = $index_root_path . 'thrift_impl/otc-service-impl/'; $base_path = $origin_base_path = $index_root_path . 'thrift_impl/otc-service-impl/';
defined('VERSION_KEY') || define('VERSION_KEY', 'thrift_impl_otc_version'); defined('VERSION_KEY') || define('VERSION_KEY', 'thrift_impl_otc_version');
$version_path = $index_root_path . 'version/'; $version_path = $index_root_path . 'version/';
defined('SERVICE_ENV') || define('SERVICE_ENV', 'test');
defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'otc_main_web.php'); defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'otc_main_web.php');
/* 需要修改的参数>> */ /* 需要修改的参数>> */
\ No newline at end of file
...@@ -5,6 +5,5 @@ $app_package_path = $index_root_path . 'thrift_impl/'; ...@@ -5,6 +5,5 @@ $app_package_path = $index_root_path . 'thrift_impl/';
$base_path = $origin_base_path = $index_root_path . 'thrift_impl/risk-service-impl/'; $base_path = $origin_base_path = $index_root_path . 'thrift_impl/risk-service-impl/';
defined('VERSION_KEY') or define('VERSION_KEY', 'thrift_impl_risk_version'); defined('VERSION_KEY') or define('VERSION_KEY', 'thrift_impl_risk_version');
$version_path = $index_root_path . 'version/'; $version_path = $index_root_path . 'version/';
defined('SERVICE_ENV') or define('SERVICE_ENV', 'test');
defined('MAIN_WEB_CONFIG_FILE') or define('MAIN_WEB_CONFIG_FILE', 'risk_main_web.php'); defined('MAIN_WEB_CONFIG_FILE') or define('MAIN_WEB_CONFIG_FILE', 'risk_main_web.php');
/* 需要修改的参数>> */ /* 需要修改的参数>> */
\ No newline at end of file
...@@ -5,6 +5,5 @@ $app_package_path = $index_root_path . 'user_site/'; ...@@ -5,6 +5,5 @@ $app_package_path = $index_root_path . 'user_site/';
$base_path = $origin_base_path = $index_root_path . 'user_site/zhaobi/'; $base_path = $origin_base_path = $index_root_path . 'user_site/zhaobi/';
defined('VERSION_KEY') || define('VERSION_KEY', 'user_site_zhaobi_version'); defined('VERSION_KEY') || define('VERSION_KEY', 'user_site_zhaobi_version');
$version_path = $index_root_path . 'version/'; $version_path = $index_root_path . 'version/';
defined('SERVICE_ENV') || define('SERVICE_ENV', 'test');
defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'inner_zhaobi_main_web.php'); defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'inner_zhaobi_main_web.php');
/* 需要修改的参数>> */ /* 需要修改的参数>> */
\ No newline at end of file
...@@ -5,6 +5,5 @@ $app_package_path = $index_root_path . 'user_site/'; ...@@ -5,6 +5,5 @@ $app_package_path = $index_root_path . 'user_site/';
$base_path = $origin_base_path = $index_root_path . 'user_site/zhaobi/'; $base_path = $origin_base_path = $index_root_path . 'user_site/zhaobi/';
defined('VERSION_KEY') || define('VERSION_KEY', 'user_site_zhaobi_version'); defined('VERSION_KEY') || define('VERSION_KEY', 'user_site_zhaobi_version');
$version_path = $index_root_path . 'version/'; $version_path = $index_root_path . 'version/';
defined('SERVICE_ENV') || define('SERVICE_ENV', 'test');
defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'zhaobi_main_web.php'); defined('MAIN_WEB_CONFIG_FILE') || define('MAIN_WEB_CONFIG_FILE', 'zhaobi_main_web.php');
/* 需要修改的参数>> */ /* 需要修改的参数>> */
\ No newline at end of file
...@@ -6,7 +6,6 @@ $app_package_path = $index_root_path . 'user_site/'; ...@@ -6,7 +6,6 @@ $app_package_path = $index_root_path . 'user_site/';
$base_path = $origin_base_path = $index_root_path . 'user_site/zhaobi_apps/'; $base_path = $origin_base_path = $index_root_path . 'user_site/zhaobi_apps/';
define('VERSION_KEY', 'user_site_zhaobi_version'); define('VERSION_KEY', 'user_site_zhaobi_version');
$version_path = $index_root_path . 'version/'; $version_path = $index_root_path . 'version/';
defined('SERVICE_ENV') or define('SERVICE_ENV', 'local');
/* 需要修改的参数>> */ /* 需要修改的参数>> */
require dirname(dirname(__DIR__)) . '/VersionApp.php'; require dirname(dirname(__DIR__)) . '/VersionApp.php';
date_default_timezone_set('Etc/GMT-8'); date_default_timezone_set('Etc/GMT-8');
......
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