mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
✨ feat: dy图片包裹,防止社死 & 更新README
This commit is contained in:
parent
25d5493df4
commit
a074888405
@ -142,6 +142,7 @@ async tuiimg (e) {
|
|||||||
|
|
||||||
| 昵称 | 赞助 |
|
| 昵称 | 赞助 |
|
||||||
|:---------------:|-----|
|
|:---------------:|-----|
|
||||||
|
| n | 13 |
|
||||||
| 一杯凉 | 30 |
|
| 一杯凉 | 30 |
|
||||||
| 左轮(ps. 我导师,泪目!) | 13 |
|
| 左轮(ps. 我导师,泪目!) | 13 |
|
||||||
| mitsuha | 13 |
|
| mitsuha | 13 |
|
||||||
|
@ -126,7 +126,7 @@ export class tools extends plugin {
|
|||||||
await (function (){
|
await (function (){
|
||||||
return fetch(url).then(resp => resp.json())
|
return fetch(url).then(resp => resp.json())
|
||||||
})
|
})
|
||||||
).then(resp_json => {
|
).then(async resp_json => {
|
||||||
const item = resp_json.aweme_detail;
|
const item = resp_json.aweme_detail;
|
||||||
e.reply(`识别:抖音, ${item.desc}`);
|
e.reply(`识别:抖音, ${item.desc}`);
|
||||||
const url_type_code = item.aweme_type;
|
const url_type_code = item.aweme_type;
|
||||||
@ -142,16 +142,22 @@ export class tools extends plugin {
|
|||||||
});
|
});
|
||||||
} else if (url_type === "image") {
|
} else if (url_type === "image") {
|
||||||
// 无水印图片列表
|
// 无水印图片列表
|
||||||
// let no_watermark_image_list = []
|
let no_watermark_image_list = [];
|
||||||
// 有水印图片列表
|
// 有水印图片列表
|
||||||
// let watermark_image_list = []
|
// let watermark_image_list = [];
|
||||||
for (let i of item.images) {
|
for (let i of item.images) {
|
||||||
// 无水印图片列表
|
// 无水印图片列表
|
||||||
// no_watermark_image_list.push(i.url_list[0])
|
no_watermark_image_list.push({
|
||||||
|
message: segment.image(i.url_list[0]),
|
||||||
|
nickname: this.e.sender.card || this.e.user_id,
|
||||||
|
user_id: this.e.user_id,
|
||||||
|
})
|
||||||
// 有水印图片列表
|
// 有水印图片列表
|
||||||
// watermark_image_list.push(i.download_url_list[0])
|
// watermark_image_list.push(i.download_url_list[0]);
|
||||||
e.reply(segment.image(i.url_list[0]));
|
// e.reply(segment.image(i.url_list[0]));
|
||||||
}
|
}
|
||||||
|
// console.log(no_watermark_image_list)
|
||||||
|
await this.reply(await Bot.makeForwardMsg(no_watermark_image_list))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user