Commit 59aaf877 authored by tufengqi's avatar tufengqi

fix

parent f7268bd9
......@@ -76,7 +76,11 @@ defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
$GLOBALS['GLOBAL_VERSION_VALUE'] = $version_val;
$GLOBALS['GLOBAL_VERSION_VALUE_NO_PTEFIX'] = $version_val_no_prefix;
$GLOBALS['GLOBAL_YII_SYSTEM_APP'] = $base_path . 'vendor/yii2_33cn/';
if(file_exists($base_path . 'vendor/yii2_33cn_dev/')){
$GLOBALS['GLOBAL_YII_SYSTEM_APP'] = $base_path . 'vendor/yii2_33cn_dev/';
}else{
$GLOBALS['GLOBAL_YII_SYSTEM_APP'] = $base_path . 'vendor/yii2_33cn/';
}
$GLOBALS['GLOBAL_YII_USER_APP'] = $base_path . 'application/';
require $GLOBAL_YII_SYSTEM_APP . 'vendor/autoload.php';
require $base_path . 'vendor/autoload.php';
......
......@@ -14,7 +14,6 @@ require_once $app_root_path . '/vendor/yii2_33cn/vendor/autoload.php';
require_once $app_root_path . '/vendor/foge/swoole-yii2/Yii.php';
require_once $app_package_path . '/LoadConfig.php';
require_once $app_root_path . '/vendor/autoload.php';
require_once $app_root_path . '/vendor/swoft_33cn/vendor/autoload.php';
require_once __DIR__ . '/swoole/config/define.php';
// init the factory of bean
\Swoft\Bean\BeanFactory::init();
......
......@@ -14,7 +14,6 @@ require_once $app_root_path . '/vendor/yii2_33cn/vendor/autoload.php';
require_once $app_root_path . '/vendor/foge/swoole-yii2/Yii.php';
require_once $app_package_path . '/LoadConfig.php';
require_once $app_root_path . '/vendor/autoload.php';
require_once $app_root_path . '/vendor/swoft_33cn/vendor/autoload.php';
require_once __DIR__ . '/swoole/config/define.php';
// init the factory of bean
\Swoft\Bean\BeanFactory::init();
......
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