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
08670a36
Commit
08670a36
authored
Jun 27, 2018
by
tufengqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
a38b04a8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
21 additions
and
19 deletions
+21
-19
VersionApp.php
VersionApp.php
+5
-4
market-swoft-for-console.php
thrift_impl/market/market-swoft-for-console.php
+8
-0
market-swoole-for-console.php
thrift_impl/market/market-swoole-for-console.php
+5
-5
feehi_5b210f926e7b5
thrift_impl/session/feehi_5b210f926e7b5
+0
-2
feehi_5b210f9271f81
thrift_impl/session/feehi_5b210f9271f81
+0
-2
feehi_5b210f92773f5
thrift_impl/session/feehi_5b210f92773f5
+0
-2
feehi_5b21114e1b369
thrift_impl/session/feehi_5b21114e1b369
+0
-2
zhaobi-swoole-for-console.php
user_site/zhaobi/zhaobi-swoole-for-console.php
+3
-2
No files found.
VersionApp.php
View file @
08670a36
...
...
@@ -11,6 +11,7 @@ if (defined('IS_FORCE_ONLINE') && true === IS_FORCE_ONLINE) {
}
$cookie_flag
=
false
;
$file_version
=
''
;
$header_arr
=
[];
if
(
$is_real_outer_access
||
(
!
$is_real_outer_access
&&
'ga'
===
$cookie_version
))
{
// 外部用户或者内部设置cookie为ga,只允许访问文件定义的ga版本
$file_tag
=
'ga'
;
...
...
@@ -35,7 +36,7 @@ if ($is_real_outer_access || (!$is_real_outer_access && 'ga' === $cookie_version
$base_path
=
$base_path
.
$cookie_version
.
'/'
;
$version_val
=
'cookie-'
.
$cookie_version
;
$version_val_no_prefix
=
$cookie_version
;
header
(
"fpf-version: "
.
$version_val
)
;
$header_arr
[
'fpf-version'
]
=
$version_val
;
$cookie_flag
=
true
;
}
}
...
...
@@ -46,7 +47,7 @@ if (false === $cookie_flag) {
$base_path
=
$base_path
.
$file_version
.
'/'
;
$version_val
=
$file_tag
.
'-'
.
$file_version
;
$version_val_no_prefix
=
$file_version
;
header
(
"fpf-version: "
.
$version_val
)
;
$header_arr
[
'fpf-version'
]
=
$version_val
;
}
}
$location_default_version
=
false
;
...
...
@@ -61,7 +62,7 @@ if ($origin_base_path === $base_path) {
$location_default_version
=
true
;
}
else
{
// 本地开发环境
header
(
"fpf-version: local"
)
;
$header_arr
[
'fpf-version'
]
=
'local'
;
}
}
}
...
...
@@ -74,7 +75,7 @@ if (true === $location_default_version) {
$base_path
=
$base_path
.
$file_version
.
'/'
;
$version_val
=
$file_tag
.
'-'
.
$file_version
;
$version_val_no_prefix
=
$file_version
;
header
(
"fpf-version: "
.
$version_val
)
;
$header_arr
[
'fpf-version'
]
=
$version_val
;
}
else
{
throw
new
Exception
(
'服务器代码定位错误'
);
}
...
...
thrift_impl/market/market-swoft-for-console.php
0 → 100644
View file @
08670a36
<?php
require
__DIR__
.
'/market-basic.php'
;
require
dirname
(
dirname
(
__DIR__
))
.
'/VersionApp.php'
;
require
$base_path
.
'vendor/autoload.php'
;
$GLOBALS
[
'GLOBAL_YII_SYSTEM_AUTOLOAD'
]
=
$GLOBALS
[
'GLOBAL_YII_SYSTEM_APP'
]
.
'vendor/autoload.php'
;
$GLOBALS
[
'GLOBAL_YII_AUTOLOAD'
]
=
$GLOBALS
[
'GLOBAL_YII_SYSTEM_APP'
]
.
'vendor/yiisoft/yii2/Yii.php'
;
$GLOBALS
[
'GLOBAL_YII_WEB_CONFIG'
]
=
require
$app_package_path
.
'app_config/'
.
MAIN_WEB_CONFIG_FILE
;
\ No newline at end of file
thrift_impl/market/market-swoole-for-console.php
View file @
08670a36
<?php
require
__DIR__
.
'/market-basic.php'
;
require
dirname
(
dirname
(
__DIR__
))
.
'/VersionApp.php'
;
require_once
$GLOBALS
[
'GLOBAL_YII_SYSTEM_APP'
]
.
'vendor/autoload.php'
;
require_once
$base_path
.
'vendor/autoload.php'
;
require_once
$GLOBALS
[
'GLOBAL_YII_SYSTEM_APP'
]
.
'vendor/yiisoft/yii2/Yii.php'
;
$config
=
require
$app_package_path
.
'app_config/'
.
MAIN_WEB_CONFIG_FILE
;
\ No newline at end of file
require
$GLOBALS
[
'GLOBAL_YII_SYSTEM_APP'
]
.
'vendor/autoload.php'
;
require
$base_path
.
'vendor/autoload.php'
;
require
$GLOBALS
[
'GLOBAL_YII_SYSTEM_APP'
]
.
'vendor/yiisoft/yii2/Yii.php'
;
$GLOBALS
[
'GLOBAL_YII_WEB_CONFIG'
]
=
require
$app_package_path
.
'app_config/'
.
MAIN_WEB_CONFIG_FILE
;
\ No newline at end of file
thrift_impl/session/feehi_5b210f926e7b5
deleted
100644 → 0
View file @
a38b04a8
[]
\ No newline at end of file
thrift_impl/session/feehi_5b210f9271f81
deleted
100644 → 0
View file @
a38b04a8
[]
\ No newline at end of file
thrift_impl/session/feehi_5b210f92773f5
deleted
100644 → 0
View file @
a38b04a8
[]
\ No newline at end of file
thrift_impl/session/feehi_5b21114e1b369
deleted
100644 → 0
View file @
a38b04a8
[]
\ No newline at end of file
user_site/zhaobi/zhaobi-swoole-for-console.php
View file @
08670a36
<?php
require
__DIR__
.
'/zhaobi-basic.php'
;
var_dump
(
$app_package_path
);
exit
;
require
dirname
(
dirname
(
__DIR__
))
.
'/VersionApp.php'
;
require_once
$GLOBALS
[
'GLOBAL_YII_SYSTEM_APP'
]
.
'vendor/autoload.php'
;
require_once
$base_path
.
'vendor/autoload.php'
;
require_once
$GLOBALS
[
'GLOBAL_YII_SYSTEM_APP'
]
.
'vendor/yiisoft/yii2/Yii.php'
;
$config
=
require
$app_package_path
.
'app_config/'
.
MAIN_WEB_CONFIG_FILE
;
\ No newline at end of file
$GLOBALS
[
'GLOBAL_YII_WEB_CONFIG'
]
=
require
$app_package_path
.
'app_config/'
.
MAIN_WEB_CONFIG_FILE
;
\ No newline at end of file
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