fix: 修正图文消息命名
- link_reply -> news_reply
This commit is contained in:
@ -92,7 +92,7 @@ export default defineEndpoint({
|
|||||||
if (firstReply && firstReply.collection === 'wechat_text_replies') {
|
if (firstReply && firstReply.collection === 'wechat_text_replies') {
|
||||||
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_link_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; link_with_questions: boolean; related_question?: string; };
|
||||||
if (!linkItem.link_with_questions) {
|
if (!linkItem.link_with_questions) {
|
||||||
// 构造图文消息XML
|
// 构造图文消息XML
|
||||||
|
|||||||
@ -33,7 +33,7 @@ export interface WechatTextReply {
|
|||||||
/**
|
/**
|
||||||
* 微信回复消息类型——图文消息
|
* 微信回复消息类型——图文消息
|
||||||
*/
|
*/
|
||||||
export interface WechatLinkReply {
|
export interface WechatNewsReply {
|
||||||
id: string;
|
id: string;
|
||||||
title: string;
|
title: string;
|
||||||
description: string;
|
description: string;
|
||||||
@ -49,8 +49,8 @@ export interface WechatLinkReply {
|
|||||||
export interface WechatRepliesReply {
|
export interface WechatRepliesReply {
|
||||||
id: string;
|
id: string;
|
||||||
wechat_replies_id: string;
|
wechat_replies_id: string;
|
||||||
item: WechatTextReply | WechatLinkReply;
|
item: WechatTextReply | WechatNewsReply;
|
||||||
collection: 'wechat_text_replies' | 'wechat_link_replies';
|
collection: 'wechat_text_replies' | 'wechat_news_replies';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user