Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web_index
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tufengqi
web_index
Commits
90eb374c
Commit
90eb374c
authored
Sep 06, 2018
by
tufengqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化ENV逻辑
parent
288fe6f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
VersionApp.php
VersionApp.php
+2
-2
No files found.
VersionApp.php
View file @
90eb374c
<?php
<?php
$env
=
include
(
__DIR__
.
'/Env.php'
);
$env
=
include
(
__DIR__
.
'/Env.php'
);
$env
=
trim
(
$env
);
$env
=
trim
(
$env
);
defined
(
'SERVICE_ENV'
)
||
define
(
'SERVICE_ENV'
,
$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'
);
...
@@ -100,7 +100,7 @@ defined('APP_FOLDER') || define('APP_FOLDER', 'application');
...
@@ -100,7 +100,7 @@ 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
;
if
(
file_exists
(
$base_path
.
'vendor/yii2_33cn_dev/'
))
{
if
(
(
SERVICE_ENV
===
'test'
||
!
SERVICE_ENV
)
&&
file_exists
(
$base_path
.
'vendor/yii2_33cn_dev/'
))
{
$GLOBALS
[
'GLOBAL_YII_SYSTEM_APP'
]
=
$base_path
.
'vendor/yii2_33cn_dev/'
;
$GLOBALS
[
'GLOBAL_YII_SYSTEM_APP'
]
=
$base_path
.
'vendor/yii2_33cn_dev/'
;
}
else
{
}
else
{
$GLOBALS
[
'GLOBAL_YII_SYSTEM_APP'
]
=
$base_path
.
'vendor/yii2_33cn/'
;
$GLOBALS
[
'GLOBAL_YII_SYSTEM_APP'
]
=
$base_path
.
'vendor/yii2_33cn/'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment