mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 00:32:06 +08:00
Update data_source.py
This commit is contained in:
@@ -61,9 +61,8 @@ class GoodsUseFuncManager:
|
||||
return param_list_
|
||||
goods_name = param.goods_name
|
||||
if self.exists(goods_name):
|
||||
if args := inspect.signature(self._data[goods_name]["func"]).parameters:
|
||||
print(parse_args(args))
|
||||
print(kwargs)
|
||||
args = inspect.signature(self._data[goods_name]["func"]).parameters
|
||||
if args and list(args.keys())[0] != "kwargs":
|
||||
if asyncio.iscoroutinefunction(self._data[goods_name]["func"]):
|
||||
return await self._data[goods_name]["func"](
|
||||
*parse_args(args)
|
||||
|
||||
Reference in New Issue
Block a user