From 661d306ac842e0abc8fe3bcec3cb99fcbff422b5 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Wed, 7 Aug 2024 11:08:08 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20pref:=20=E5=A2=9E=E5=8A=A0=20`dy?= =?UTF-8?q?`=20=E7=9A=84=E7=A9=BA=E5=80=BC=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/tools.js b/apps/tools.js index e203b82..e93a023 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -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]; // 核心内容