调整异常扣分记录,如果是异常的数据,则不扣分

This commit is contained in:
liuwei
2025-04-17 14:42:47 +08:00
parent 05eb182e6a
commit 9579d3208f
10 changed files with 53 additions and 28 deletions

View File

@@ -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]:
"""获取随机图片路径"""