diff --git a/lib/routes/dianping/user.ts b/lib/routes/dianping/user.ts
index 8a0de081ec796e..09cbf1b8fc700f 100644
--- a/lib/routes/dianping/user.ts
+++ b/lib/routes/dianping/user.ts
@@ -2,24 +2,17 @@ import { Route } from '@/types';
import ofetch from '@/utils/ofetch';
import { config } from '@/config';
-function addPictureAndVideo(item: any) {
- let content = '';
- content += item.pictureList ? item.pictureList.map((ele: any) => ``).join('
') : '';
- content += item.videoUrl ? `` : '';
- return content;
-}
-
export const route: Route = {
path: '/user/:id',
categories: ['shopping'],
example: '/dianping/user/808259118',
- parameters: { id: 'User id' },
+ parameters: { id: 'User id,打开网页端从 URL 中获取,在 `/member/:id` 中' },
features: {
requireConfig: [
{
name: 'DIANPING_COOKIE',
optional: false,
- description: 'Cookie for Dianping',
+ description: '大众点评的 Cookie',
},
],
requirePuppeteer: false,
@@ -30,16 +23,23 @@ export const route: Route = {
},
radar: [
{
- source: ['dianping.com/member/:id'],
+ source: ['dianping.com/member/:id', 'm.dianping.com/userprofile/:id'],
target: '/dianping/user/:id',
},
],
- name: 'User',
+ name: '用户动态',
maintainers: ['pseudoyu'],
handler,
- description: 'Get user reviews, check-ins, guides.',
+ description: '获取用户点评、签到、攻略等动态。',
};
+function addPictureAndVideo(item: any) {
+ let content = '';
+ content += item.pictureList ? item.pictureList.map((ele: any) => ``).join('
') : '';
+ content += item.videoUrl ? `` : '';
+ return content;
+}
+
const starMap: Record = {
0: '无',
10: '一星',