fix: 修改抖音跳转路径

This commit is contained in:
王鹏 2023-07-12 15:10:29 +08:00
parent 87f0ca3c78
commit 30f99cd010

View File

@ -4,7 +4,7 @@
* @Author: WangPeng * @Author: WangPeng
* @Date: 2023-07-10 16:56:01 * @Date: 2023-07-10 16:56:01
* @LastEditors: WangPeng * @LastEditors: WangPeng
* @LastEditTime: 2023-07-12 11:34:50 * @LastEditTime: 2023-07-12 15:09:39
*/ */
const Router = require("koa-router"); const Router = require("koa-router");
const douyinRouter = new Router(); const douyinRouter = new Router();
@ -38,8 +38,8 @@ const getData = (data) => {
title: v.word, title: v.word,
pic: v.word_cover?.url_list[0] || null, pic: v.word_cover?.url_list[0] || null,
hot: v.hot_value, hot: v.hot_value,
url: `https://www.douyin.com/hot?modal_id=${v.group_id}`, url: `https://www.douyin.com/hot/${v.sentence_id}`,
mobileUrl: `snssdk1128://share/video/${v.group_id}`, mobileUrl: `https://www.douyin.com/hot/${v.sentence_id}`,
}; };
}); });
}; };