Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
67c160eb4a21be32ed9d3124d55e48b740c81cc8
2 parents
f74de8ef
561a9482
Merge branch 'master' into feature/merge-captcha
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
apps/brands/controllers/brands.js
apps/brands/controllers/brands.js
View file @
67c160e
...
...
@@ -22,7 +22,7 @@ exports.index = (req, res, next) => {
brandsService
.
getBrandViewList
(
channel
,
req
).
then
(
result
=>
{
// 返回null,不cashe
if
(
result
.
noCashe
)
{
res
.
set
(
'Ca
she-Control'
,
'no-cas
he'
);
res
.
set
(
'Ca
che-Control'
,
'no-cac
he'
);
}
res
.
render
(
'brands/brands'
,
result
);
...
...
@@ -55,7 +55,7 @@ exports.brandInfo = (req, res, next) => {
brandsService
.
brandInfo
(
brandId
,
req
.
user
.
uid
).
then
(
result
=>
{
// 返回null,不cashe
if
(
result
.
noCashe
)
{
res
.
set
(
'Ca
she-Control'
,
'no-cas
he'
);
res
.
set
(
'Ca
che-Control'
,
'no-cac
he'
);
}
res
.
json
(
result
);
}).
catch
(
next
);
...
...
@@ -70,7 +70,7 @@ exports.plusstarList = (req, res, next) => {
brandsService
.
plusstarList
(
channel
,
req
).
then
(
result
=>
{
// 返回null,不cashe
if
(
result
.
noCashe
)
{
res
.
set
(
'Ca
she-Control'
,
'no-cas
he'
);
res
.
set
(
'Ca
che-Control'
,
'no-cac
he'
);
}
res
.
render
(
'brands/plusstar'
,
result
);
}).
catch
(
next
);
...
...
Please
register
or
login
to post a comment