mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🎈 pref: 增加 dy
的空值控制
This commit is contained in:
parent
5679b93f83
commit
661d306ac8
@ -293,9 +293,13 @@ export class tools extends plugin {
|
||||
// 如果失败进行3次重试
|
||||
try {
|
||||
const data = await retryAxiosReq(dyResponse)
|
||||
|
||||
// logger.info(data)
|
||||
const item = await data.aweme_detail;
|
||||
// 如果为null则退出
|
||||
if (item == null) {
|
||||
e.reply("R插件无法识别到当前抖音内容,请换一个试试!");
|
||||
return;
|
||||
}
|
||||
const urlTypeCode = item.aweme_type;
|
||||
const urlType = douyinTypeMap[urlTypeCode];
|
||||
// 核心内容
|
||||
|
Loading…
x
Reference in New Issue
Block a user