diff --git a/lib/routes/dianping/user.js b/lib/routes/dianping/user.js
index 2f3a854d10..c310200354 100644
--- a/lib/routes/dianping/user.js
+++ b/lib/routes/dianping/user.js
@@ -1,6 +1,19 @@
const axios = require('../../utils/axios');
const date = require('../../utils/date');
+function addPictureAndVideo(item) {
+ let content = '';
+ content += item.pictureList
+ ? item.pictureList
+ .map(function(ele) {
+ return `
`;
+ })
+ .join('
')
+ : '';
+ content += item.videoUrl ? `
` : '';
+ return content;
+}
+
module.exports = async (ctx) => {
const id = ctx.params.id;
@@ -50,31 +63,26 @@ module.exports = async (ctx) => {
content = poi;
title = `签到成功: ${poiName} `;
} else if (item.feedType === 101) {
- // 发布点评
+ // 对商户、地点发布点评
link = `https://m.dianping.com/ugcdetail/${item.mainId}?sceneType=0&bizType=1`;
content = item.content.replace(/\n+/g, '
') + '
';
content += `评分:${starMap[item.star]}
`;
content += poi + '
';
- content += item.pictureList
- ? item.pictureList
- .map(function(ele) {
- return `
`;
- })
- .join('
')
- : '';
+ content += addPictureAndVideo(item);
title = `发布点评: ${poiName}`;
+ } else if (item.feedType === 131) {
+ // 发布点评
+ link = `https://m.dianping.com/ugcdetail/${item.mainId}?sceneType=0&bizType=29`;
+ content = item.content.replace(/\n+/g, '
') + '
';
+ content += addPictureAndVideo(item);
+ title = `发布点评: ${content}`;
} else if (item.feedType === 4208) {
// 发布攻略
link = `https://m.dianping.com/cityinsight/${item.mainId}`;
content = item.content.replace(/\n+/g, '
') + '
';
content += poi + '
';
- content += item.pictureList
- ? item.pictureList
- .map(function(ele) {
- return `
`;
- })
- .join('
')
- : '';
+ content += item.moreDesc ? `${item.moreDesc}
` : '';
+ content += addPictureAndVideo(item);
title = `发布攻略: ${poiName}`;
}