奇怪的错误,忽略提示不影响使用

This commit is contained in:
zyc404 2023-12-08 10:40:20 +08:00
parent 065d377bd0
commit b3c3990831

View file

@ -67,7 +67,11 @@ async function User (fastify, options) {
let bots = getBots()
for (let bot of bots) {
if(isTrss) {
bot.pickFriend(master).sendMsg(`收到工具箱快捷登录请求1分钟内有效${otp}`)
try {
bot.pickFriend(master).sendMsg(`收到工具箱快捷登录请求1分钟内有效${otp}`)
} catch (error) {
logger.error(error)
}
} else {
bot.pickUser(master).sendMsg(`收到工具箱快捷登录请求1分钟内有效${otp}`)
}