mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🚑 修复道具无法正常使用
This commit is contained in:
parent
2c4611fb46
commit
40cce741fa
@ -1,7 +1,7 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
from collections.abc import Callable
|
|
||||||
import inspect
|
import inspect
|
||||||
import time
|
import time
|
||||||
|
from collections.abc import Callable
|
||||||
from types import MappingProxyType
|
from types import MappingProxyType
|
||||||
from typing import Any, Literal
|
from typing import Any, Literal
|
||||||
|
|
||||||
@ -332,7 +332,9 @@ class ShopManage:
|
|||||||
return f"{goods_info.goods_name} 单次使用最大数量为{param.max_num_limit}..."
|
return f"{goods_info.goods_name} 单次使用最大数量为{param.max_num_limit}..."
|
||||||
await cls.run_before_after(goods, param, "before", **kwargs)
|
await cls.run_before_after(goods, param, "before", **kwargs)
|
||||||
result = await cls.__run(goods, param, session, **kwargs)
|
result = await cls.__run(goods, param, session, **kwargs)
|
||||||
await UserConsole.use_props(session.id1, goods_info.uuid, num, session.platform) # type: ignore
|
await UserConsole.use_props(
|
||||||
|
session.user.id, goods_info.uuid, num, PlatformUtils.get_platform(session)
|
||||||
|
)
|
||||||
await cls.run_before_after(goods, param, "after", **kwargs)
|
await cls.run_before_after(goods, param, "after", **kwargs)
|
||||||
if not result and param.send_success_msg:
|
if not result and param.send_success_msg:
|
||||||
result = f"使用道具 {goods.name} {num} 次成功!"
|
result = f"使用道具 {goods.name} {num} 次成功!"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user