mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-03 10:40:02 +08:00
fix ShopRegister
This commit is contained in:
@@ -31,6 +31,8 @@ class ShopRegister(dict):
|
||||
for key, value in kwargs.items():
|
||||
if key.startswith(f"{n}_"):
|
||||
_temp_kwargs[key.split("_", maxsplit=1)[-1]] = value
|
||||
else:
|
||||
_temp_kwargs[key] = value
|
||||
self._data[n] = {
|
||||
"price": p,
|
||||
"des": d,
|
||||
|
||||
Reference in New Issue
Block a user