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