Authored by ccbikai(👎🏻🍜)

自定义频道优化

... ... @@ -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
}
};
... ...
... ... @@ -12,6 +12,9 @@ const cachePage = {
'/kids': 30 * SECOND,
'/lifestyle': 30 * SECOND,
// 自定义频道
'/channel/:id.html': 1 * MINUTE,
//ajax获取频道页楼层
'/channel/getResourceContent': 30 * MINUTE,
... ...