Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
whb
9 years ago
Commit
1b636eeef5b22f7793d6f5e9fa8c30fc4cdbe348
1 parent
f1a5a86e
tools
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
yohobuy/www.yohobuy.com/application/controllers/Tools.php
yohobuy/www.yohobuy.com/application/controllers/Tools.php
View file @
1b636ee
...
...
@@ -32,6 +32,7 @@ class ToolsController extends WebAction
{
//频道=>key
$channels
=
array
(
'导航'
=>
CacheConfig
::
KEY_WEB_HOME_NAVBAR_DATA
,
'男生首页'
=>
CacheConfig
::
KEY_WEB_HOME_CHANNEL_DATA
.
'_'
.
HomeModel
::
CODE_BOYS_CHANNEL
,
'女生首页'
=>
CacheConfig
::
KEY_WEB_HOME_CHANNEL_DATA
.
'_'
.
HomeModel
::
CODE_GIRLS_CHANNEL
,
'kids首页'
=>
CacheConfig
::
KEY_WEB_HOME_CHANNEL_DATA
.
'_'
.
HomeModel
::
CODE_KIDS_CHANNEL
,
...
...
@@ -54,8 +55,15 @@ class ToolsController extends WebAction
{
$key
=
$this
->
get
(
'key'
);
if
(
!
empty
(
$key
))
{
AuthCode
::
decode
(
$key
,
'yohobuy'
);
$key
=
AuthCode
::
decode
(
$key
,
'yohobuy'
);
if
(
!
empty
(
$key
))
{
//导航清除
if
(
$key
==
CacheConfig
::
KEY_WEB_HOME_NAVBAR_DATA
)
{
$list
=
array
(
HomeModel
::
COOKIE_NAME_BOYS
,
HomeModel
::
COOKIE_NAME_GIRLS
,
HomeModel
::
COOKIE_NAME_KIDS
,
HomeModel
::
COOKIE_NAME_LIFESTYLE
);
foreach
(
$list
as
$val
)
{
Cache
::
delete
(
$key
.
'_'
.
$val
);
}
}
Cache
::
delete
(
$key
);
echo
'清除成功'
;
}
...
...
Please
register
or
login
to post a comment