fix: 修正图文消息命名
- link_with_questions -> enable_question
This commit is contained in:
@ -93,8 +93,8 @@ export default defineEndpoint({
|
|||||||
const textItem = firstReply.item as { content: string };
|
const textItem = firstReply.item as { content: string };
|
||||||
reply = replyBuilder.buildTextReply(textItem.content);
|
reply = replyBuilder.buildTextReply(textItem.content);
|
||||||
} else if (firstReply && firstReply.collection === 'wechat_news_replies') {
|
} else if (firstReply && firstReply.collection === 'wechat_news_replies') {
|
||||||
const linkItem = firstReply.item as unknown as { title: string; description: string; url: string; thumbnail: string; link_with_questions: boolean; related_question?: string; };
|
const linkItem = firstReply.item as unknown as { title: string; description: string; url: string; thumbnail: string; enable_question: boolean; related_question?: string; };
|
||||||
if (!linkItem.link_with_questions) {
|
if (!linkItem.enable_question) {
|
||||||
// 构造图文消息XML
|
// 构造图文消息XML
|
||||||
reply = replyBuilder.buildNewsReply(
|
reply = replyBuilder.buildNewsReply(
|
||||||
linkItem.title,
|
linkItem.title,
|
||||||
|
|||||||
@ -39,7 +39,7 @@ export interface WechatNewsReply {
|
|||||||
description: string;
|
description: string;
|
||||||
url: string;
|
url: string;
|
||||||
thumbnail: string;
|
thumbnail: string;
|
||||||
link_with_questions: boolean;
|
enable_question: boolean;
|
||||||
related_question?: string;
|
related_question?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user