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 };
|
||||
reply = replyBuilder.buildTextReply(textItem.content);
|
||||
} 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; };
|
||||
if (!linkItem.link_with_questions) {
|
||||
const linkItem = firstReply.item as unknown as { title: string; description: string; url: string; thumbnail: string; enable_question: boolean; related_question?: string; };
|
||||
if (!linkItem.enable_question) {
|
||||
// 构造图文消息XML
|
||||
reply = replyBuilder.buildNewsReply(
|
||||
linkItem.title,
|
||||
|
||||
@ -39,7 +39,7 @@ export interface WechatNewsReply {
|
||||
description: string;
|
||||
url: string;
|
||||
thumbnail: string;
|
||||
link_with_questions: boolean;
|
||||
enable_question: boolean;
|
||||
related_question?: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user