|
@@ -26,7 +26,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -26,7 +26,7 @@ module.exports = class extends global.yoho.BaseModel { |
26
|
|
26
|
|
27
|
lresult = {
|
27
|
lresult = {
|
28
|
id: articleData.id,
|
28
|
id: articleData.id,
|
29
|
- url: helpers.urlFormat(`/guang/news/${articleData.id}_${articleData.cid}.html`),
|
29
|
+ url: helpers.urlFormat(`/guang/news/${articleData.id}_${articleData.cid}_${articleData.app}.html`),
|
30
|
img: helpers.image(articleData.image, width, height, 1),
|
30
|
img: helpers.image(articleData.image, width, height, 1),
|
31
|
title: articleData.title,
|
31
|
title: articleData.title,
|
32
|
publishTime: articleData.update_time && moment(articleData.update_time * 1000).format('MM月DD HH:mm'),
|
32
|
publishTime: articleData.update_time && moment(articleData.update_time * 1000).format('MM月DD HH:mm'),
|
|
@@ -102,11 +102,12 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -102,11 +102,12 @@ module.exports = class extends global.yoho.BaseModel { |
102
|
detail(channel, param) {
|
102
|
detail(channel, param) {
|
103
|
let params = {
|
103
|
let params = {
|
104
|
id: param.id,
|
104
|
id: param.id,
|
105
|
- cid: param.cid
|
105
|
+ cid: param.cid,
|
|
|
106
|
+ app: param.app
|
106
|
};
|
107
|
};
|
107
|
|
108
|
|
108
|
return redis.all([
|
109
|
return redis.all([
|
109
|
- ['get', `global:yoho:news:detail:${params.id}-${params.cid}`]
|
110
|
+ ['get', `global:yoho:news:detail:${params.id}-${params.cid}-param.app`]
|
110
|
]).then(redisData => {
|
111
|
]).then(redisData => {
|
111
|
redisData = JSON.parse(redisData[0] || '{}');
|
112
|
redisData = JSON.parse(redisData[0] || '{}');
|
112
|
|
113
|
|