mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-10 06:10:01 +08:00
fix ShopRegister
This commit is contained in:
@@ -247,6 +247,7 @@ __Docker 最新版本由 [Sakuracio](https://github.com/Sakuracio) 提供__
|
|||||||
|
|
||||||
* 修复了webUI插件相关API问题
|
* 修复了webUI插件相关API问题
|
||||||
* 插件仓库在已安装插件边上会提示\[已安装]
|
* 插件仓库在已安装插件边上会提示\[已安装]
|
||||||
|
* 修复ShopRegister kwargs某些字段无效
|
||||||
|
|
||||||
### 2022/5/31
|
### 2022/5/31
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ class ShopRegister(dict):
|
|||||||
for key, value in kwargs.items():
|
for key, value in kwargs.items():
|
||||||
if key.startswith(f"{n}_"):
|
if key.startswith(f"{n}_"):
|
||||||
_temp_kwargs[key.split("_", maxsplit=1)[-1]] = value
|
_temp_kwargs[key.split("_", maxsplit=1)[-1]] = value
|
||||||
|
else:
|
||||||
|
_temp_kwargs[key] = value
|
||||||
self._data[n] = {
|
self._data[n] = {
|
||||||
"price": p,
|
"price": p,
|
||||||
"des": d,
|
"des": d,
|
||||||
|
|||||||
Reference in New Issue
Block a user