Commit d1c728af authored by tufengqi's avatar tufengqi

dev yii2_33cn support

parent 66ee434c
...@@ -90,5 +90,9 @@ defined('APP_FOLDER') || define('APP_FOLDER', 'application'); ...@@ -90,5 +90,9 @@ defined('APP_FOLDER') || define('APP_FOLDER', 'application');
// swoole程序中每次访问可能根据用户请求带的版本号有所不同 // swoole程序中每次访问可能根据用户请求带的版本号有所不同
$GLOBALS['GLOBAL_VERSION_VALUE'] = $version_val; $GLOBALS['GLOBAL_VERSION_VALUE'] = $version_val;
$GLOBALS['GLOBAL_VERSION_VALUE_NO_PTEFIX'] = $version_val_no_prefix; $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 . APP_FOLDER . '/'; $GLOBALS['GLOBAL_YII_USER_APP'] = $base_path . APP_FOLDER . '/';
\ No newline at end of file
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