Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 修复私聊无法使用道具 #1697

Merged
merged 1 commit into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions zhenxun/builtin_plugins/shop/_data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ class Goods(BaseModel):
class ShopParam(BaseModel):
goods_name: str
"""商品名称"""
user_id: int
user_id: str | None
"""用户id"""
group_id: int
group_id: str | None
"""群聊id"""
bot: Any
"""bot"""
Expand Down
2 changes: 1 addition & 1 deletion zhenxun/builtin_plugins/sign_in/goods_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"好感度双倍加持卡Ⅲ_prob": 0.3,
}, # type: ignore
)
async def _(session: EventSession, user_id: int, prob: float):
async def _(session: EventSession, user_id: str, prob: float):
if session.id1:
user_console = await UserConsole.get_user(session.id1, session.platform)
user, _ = await SignUser.get_or_create(
Expand Down
Loading