调整异常扣分记录,如果是异常的数据,则不扣分
This commit is contained in:
@@ -108,7 +108,7 @@ class XiurenImagePlugin(MessagePluginInterface):
|
||||
if not pic_path:
|
||||
wcf.send_text(f"❌未找到图片资源",
|
||||
(roomid if roomid else sender), sender)
|
||||
return True, "未找到图片资源"
|
||||
return False, "未找到图片资源"
|
||||
|
||||
# 发送图片
|
||||
result = wcf.send_file(pic_path, (roomid if roomid else sender))
|
||||
@@ -117,7 +117,7 @@ class XiurenImagePlugin(MessagePluginInterface):
|
||||
|
||||
except Exception as e:
|
||||
self.LOG.error(f"处理图片请求出错: {e}")
|
||||
return True, f"处理出错: {e}"
|
||||
return False, f"处理出错: {e}"
|
||||
|
||||
def _get_random_pic(self) -> Optional[str]:
|
||||
"""获取随机图片路径"""
|
||||
|
||||
Reference in New Issue
Block a user