wechaty-web-panel 1.6.19 → 1.6.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/dist/cjs/src/common/index.js +2 -2
- package/dist/cjs/src/package-json.js +1 -1
- package/dist/cjs/src/task/rss.js +1 -1
- package/dist/esm/src/common/index.js +2 -2
- package/dist/esm/src/package-json.js +1 -1
- package/dist/esm/src/task/rss.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -232,8 +232,8 @@ async function roomSay(room, contact, msg) {
|
|
|
232
232
|
const title = await formatContent(msg.title);
|
|
233
233
|
let url = new this.UrlLink({
|
|
234
234
|
description: description,
|
|
235
|
-
thumbnailUrl:
|
|
236
|
-
title:
|
|
235
|
+
thumbnailUrl: msg.thumbUrl,
|
|
236
|
+
title: title,
|
|
237
237
|
url: msg.url,
|
|
238
238
|
});
|
|
239
239
|
await room.say(url);
|
package/dist/cjs/src/task/rss.js
CHANGED
|
@@ -21,7 +21,7 @@ async function getRssContent(info) {
|
|
|
21
21
|
if (feed.items && feed.items.length) {
|
|
22
22
|
// 当存在历史推送记录 需要判读是否推送过
|
|
23
23
|
const last = feed.items[0];
|
|
24
|
-
const lastContent = last.
|
|
24
|
+
const lastContent = last.link;
|
|
25
25
|
if (lastItem) {
|
|
26
26
|
if (lastContent !== lastItem.lastContent) {
|
|
27
27
|
const content = await setContent(last, info);
|
|
@@ -222,8 +222,8 @@ async function roomSay(room, contact, msg) {
|
|
|
222
222
|
const title = await formatContent(msg.title);
|
|
223
223
|
let url = new this.UrlLink({
|
|
224
224
|
description: description,
|
|
225
|
-
thumbnailUrl:
|
|
226
|
-
title:
|
|
225
|
+
thumbnailUrl: msg.thumbUrl,
|
|
226
|
+
title: title,
|
|
227
227
|
url: msg.url,
|
|
228
228
|
});
|
|
229
229
|
await room.say(url);
|
package/dist/esm/src/task/rss.js
CHANGED
|
@@ -15,7 +15,7 @@ async function getRssContent(info) {
|
|
|
15
15
|
if (feed.items && feed.items.length) {
|
|
16
16
|
// 当存在历史推送记录 需要判读是否推送过
|
|
17
17
|
const last = feed.items[0];
|
|
18
|
-
const lastContent = last.
|
|
18
|
+
const lastContent = last.link;
|
|
19
19
|
if (lastItem) {
|
|
20
20
|
if (lastContent !== lastItem.lastContent) {
|
|
21
21
|
const content = await setContent(last, info);
|