🐛 修复处理问题并优化代码

This commit is contained in:
HibiKier
2024-08-02 20:46:51 +08:00
parent fdb62f7226
commit 36047693aa
5 changed files with 48 additions and 14 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ class FgRequest(Model):
req = await cls.get_or_none(id=id)
if not req:
raise NotFoundError
req.handle_type = RequestHandleType
req.handle_type = handle_type
await req.save(update_fields=["handle_type"])
if bot and handle_type not in [
RequestHandleType.IGNORE,