fix: jike

This commit is contained in:
DIYgod
2024-03-15 00:52:21 +08:00
parent 4a0aceb7e3
commit b370ba9d85
3 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ async function handler(ctx) {
const data = await constructTopicEntry(ctx, topicUrl); const data = await constructTopicEntry(ctx, topicUrl);
if (data) { if (data) {
const result = ctx.get('data'); const result = data.result;
result.item = data.posts.map((item) => { result.item = data.posts.map((item) => {
const date = dayjs(item.createdAt); const date = dayjs(item.createdAt);
return { return {

View File

@@ -36,7 +36,7 @@ async function handler(ctx) {
const data = await constructTopicEntry(ctx, topicUrl); const data = await constructTopicEntry(ctx, topicUrl);
if (data) { if (data) {
const result = ctx.get('data'); const result = data.result;
result.item = topicDataHanding(data, ctx); result.item = topicDataHanding(data, ctx);
if (id === '553870e8e4b0cafb0a1bef68' || id === '55963702e4b0d84d2c30ce6f') { if (id === '553870e8e4b0cafb0a1bef68' || id === '55963702e4b0d84d2c30ce6f') {
result.item = await Promise.all( result.item = await Promise.all(

View File

@@ -183,7 +183,7 @@ const constructTopicEntry = async (ctx, url) => {
const topic = data.topic; const topic = data.topic;
return { data.result = {
title: `${topic.content} - 即刻圈子`, title: `${topic.content} - 即刻圈子`,
link: url, link: url,
description: topic.briefIntro, description: topic.briefIntro,