zhenxun_bot/zhenxun/builtin_plugins/shop/goods_register.py
HibiKier 2f939ff52b
🐛 修复商品图标显示问题,移除测试道具 (#1817)
Co-authored-by: Flern <cb56ec362bbbfb5272eb941281299d8d-qq_connect@git.osc>
2025-01-06 21:23:15 +08:00

34 lines
806 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from zhenxun.models.user_console import UserConsole
from zhenxun.utils.decorator.shop import shop_register
@shop_register(
name="神秘药水",
price=999999,
des="鬼知道会有什么效果,要不试试?",
partition="小秘密",
icon="mysterious_potion.png",
)
async def _(user_id: str):
await UserConsole.add_gold(
user_id,
1000000,
"shop",
)
return "使用道具神秘药水成功!你滴金币+1000000"
@shop_register(
name="神秘药水2",
price=999999,
des="鬼知道会有什么效果,要不试试?",
partition="小秘密",
)
async def _(user_id: str):
await UserConsole.add_gold(
user_id,
1000000,
"shop",
)
return "使用道具神秘药水成功!你滴金币+1000000"