🦄 reactor: 重构tieba解析

This commit is contained in:
zhiyu1998 2024-08-22 12:08:25 +08:00
parent d4c74fda83
commit b4a0593a6c

View File

@ -1906,7 +1906,7 @@ export class tools extends plugin {
const top = postList[0]; const top = postList[0];
const { title, content } = top; const { title, content } = top;
let sendContent = `${this.identifyPrefix}识别:贴吧,${ title }` let sendContent = `${this.identifyPrefix}识别:贴吧,${ title }`
if (content?.[0]?.cdn_src !== undefined) { if (content.length > 0) {
sendContent = [sendContent] sendContent = [sendContent]
for (let contentElement of content) { for (let contentElement of content) {
if (contentElement?.cdn_src !== undefined) { if (contentElement?.cdn_src !== undefined) {