Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
ccbikai(👎🏻🍜)
8 years ago
Commit
27bc982c39290ee92cc9c30b691fbda750137d40
1 parent
c025f201
自定义频道优化
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
apps/channel/models/custom.js
config/cache.js
apps/channel/models/custom.js
View file @
27bc982
...
...
@@ -11,7 +11,8 @@ const service = global.yoho.ServiceAPI;
const
getResourceData
=
(
code
)
=>
{
return
service
.
get
(
'operations/api/v5/resource/get'
,
{
content_code
:
code
content_code
:
code
,
platform
:
'iphone'
},
{
cache
:
true
,
code
:
200
...
...
@@ -22,4 +23,4 @@ const getResourceData = (code) => {
module
.
exports
=
{
getResourceData
}
}
;
...
...
config/cache.js
View file @
27bc982
...
...
@@ -12,6 +12,9 @@ const cachePage = {
'/kids'
:
30
*
SECOND
,
'/lifestyle'
:
30
*
SECOND
,
// 自定义频道
'/channel/:id.html'
:
1
*
MINUTE
,
//ajax获取频道页楼层
'/channel/getResourceContent'
:
30
*
MINUTE
,
...
...
Please
register
or
login
to post a comment