Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
6f069d31cf22b804d5b008253fd9d7a866db227a
1 parent
66a86eb4
modify to compile home page template
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
5 deletions
compile/m.yohobuy.com/1e8818e9ebecd8edec086bce6581a0ec.php
compile/m.yohobuy.com/a9a698d10afefeea47a5da9dd7d0ab90.php
compile/m.yohobuy.com/e37e82b8489f772a90a0497927a3b646.php
library/Plugin/TemplateLayout.php
script/nginx/conf/vhosts/nginx.test.yohobuy.conf
compile/m.yohobuy.com/1e8818e9ebecd8edec086bce6581a0ec.php
View file @
6f069d3
...
...
@@ -350,7 +350,7 @@
'
:
''
)
.
''
.
((
Plugin\LCRun3
::
ifvar
(
$cx
,
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'preEnv'
))))
?
'<script src="http://cdn.yoho.cn/myohobuy/'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'version'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'/lib.js"></script>
<script src="http://cdn.yoho.cn/myohobuy/'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'version'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'/index.js"></script>
'
:
''
)
.
''
.
((
Plugin\LCRun3
::
ifvar
(
$cx
,
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'testEnv'
))))
?
'<script src="http://static.buy.test.yoho.cn/dist/myohobuy/'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'version'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'/lib.js"></script>
<script src="http://static.buy.test.yoho.cn/dist/myohobuy/'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'version'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'/index.js"></script>
<script src="http://static.buy.test.yoho.cn/dist/myohobuy/'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'version'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'/index
-debug
.js"></script>
'
:
''
)
.
''
.
((
Plugin\LCRun3
::
ifvar
(
$cx
,
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'devEnv'
))))
?
'<script src="http://localhost:8000/static/js/sea.js?nowrap"></script>
<script>seajs.config({base: \'http://localhost:8000/\'});</script>
'
:
''
)
.
'
...
...
compile/m.yohobuy.com/a9a698d10afefeea47a5da9dd7d0ab90.php
View file @
6f069d3
...
...
@@ -387,7 +387,7 @@
'
:
''
)
.
''
.
((
Plugin\LCRun3
::
ifvar
(
$cx
,
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'preEnv'
))))
?
'<script src="http://cdn.yoho.cn/myohobuy/'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'version'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'/lib.js"></script>
<script src="http://cdn.yoho.cn/myohobuy/'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'version'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'/index.js"></script>
'
:
''
)
.
''
.
((
Plugin\LCRun3
::
ifvar
(
$cx
,
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'testEnv'
))))
?
'<script src="http://static.buy.test.yoho.cn/dist/myohobuy/'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'version'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'/lib.js"></script>
<script src="http://static.buy.test.yoho.cn/dist/myohobuy/'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'version'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'/index.js"></script>
<script src="http://static.buy.test.yoho.cn/dist/myohobuy/'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'version'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'/index
-debug
.js"></script>
'
:
''
)
.
''
.
((
Plugin\LCRun3
::
ifvar
(
$cx
,
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'devEnv'
))))
?
'<script src="http://localhost:8000/static/js/sea.js?nowrap"></script>
<script>seajs.config({base: \'http://localhost:8000/\'});</script>
'
:
''
)
.
'
...
...
compile/m.yohobuy.com/e37e82b8489f772a90a0497927a3b646.php
View file @
6f069d3
...
...
@@ -382,7 +382,7 @@
'
:
''
)
.
''
.
((
Plugin\LCRun3
::
ifvar
(
$cx
,
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'preEnv'
))))
?
'<script src="http://cdn.yoho.cn/myohobuy/'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'version'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'/lib.js"></script>
<script src="http://cdn.yoho.cn/myohobuy/'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'version'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'/index.js"></script>
'
:
''
)
.
''
.
((
Plugin\LCRun3
::
ifvar
(
$cx
,
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'testEnv'
))))
?
'<script src="http://static.buy.test.yoho.cn/dist/myohobuy/'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'version'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'/lib.js"></script>
<script src="http://static.buy.test.yoho.cn/dist/myohobuy/'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'version'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'/index.js"></script>
<script src="http://static.buy.test.yoho.cn/dist/myohobuy/'
.
htmlentities
((
string
)
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'version'
)),
ENT_QUOTES
,
'UTF-8'
)
.
'/index
-debug
.js"></script>
'
:
''
)
.
''
.
((
Plugin\LCRun3
::
ifvar
(
$cx
,
Plugin\LCRun3
::
v
(
$cx
,
$in
,
array
(
'devEnv'
))))
?
'<script src="http://localhost:8000/static/js/sea.js?nowrap"></script>
<script>seajs.config({base: \'http://localhost:8000/\'});</script>
'
:
''
)
.
'
...
...
library/Plugin/TemplateLayout.php
View file @
6f069d3
...
...
@@ -139,7 +139,7 @@ class TemplateLayout implements View_Interface
// 取得模板的最后修改时间戳
$lastModifyTime
=
filemtime
(
$viewName
);
// 使用MD5生成唯一的键名
$makeKey
=
md5
(
$viewName
.
strval
(
$lastModifyTime
));
$makeKey
=
md5
(
$viewName
.
strval
(
$lastModifyTime
));
// 模板编译成PHP文件所存放的目录
$compilePath
=
$config
->
template
->
compile
;
// 模板编译成PHP文件所存放的文件路径
...
...
script/nginx/conf/vhosts/nginx.test.yohobuy.conf
View file @
6f069d3
...
...
@@ -228,10 +228,20 @@ server
proxy_set_header
Accept
-
Encoding
"gzip"
;
}
# 热销排行
location
^~ /
hotrank
{
proxy_redirect
off
;
proxy_pass
http
://
101
.
201
.
176
.
121
;
proxy_set_header
Host
new
.
m
.
yohobuy
.
com
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
Accept
-
Encoding
"gzip"
;
}
# 其它访问都跳到老版
location
/ {
proxy_redirect
off
;
proxy_pass
http
://
61
.
155
.
222
.
163
;
proxy_pass
http
://
119
.
254
.
81
.
245
;
proxy_set_header
Host
m
.
yohobuy
.
com
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
...
...
Please
register
or
login
to post a comment