mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-05 20:00:04 +08:00
🐛 修复处理问题并优化代码
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user