mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-05-08 13:05:47 +08:00
🐛 修复订阅消息的BUG
This commit is contained in:
parent
d5b5adadcd
commit
e2eb66daeb
@ -55,9 +55,9 @@ class GsCoreSubscribe:
|
||||
)
|
||||
|
||||
if not condi:
|
||||
await Subscribe.insert_data(
|
||||
event.user_id,
|
||||
event.bot_id,
|
||||
await Subscribe.full_insert_data(
|
||||
user_id=event.user_id,
|
||||
bot_id=event.bot_id,
|
||||
group_id=event.group_id,
|
||||
task_name=task_name,
|
||||
bot_self_id=event.bot_self_id,
|
||||
|
@ -46,6 +46,8 @@ class Subscribe(BaseModel, table=True):
|
||||
user_id=self.user_id,
|
||||
bot_self_id=self.bot_self_id,
|
||||
user_type=self.user_type, # type: ignore
|
||||
group_id=self.group_id,
|
||||
real_bot_id=self.bot_id,
|
||||
)
|
||||
bot = Bot(BOT, ev)
|
||||
await bot.send_option(
|
||||
|
Loading…
x
Reference in New Issue
Block a user