🎨 更新了对数据库的表、字段判断

This commit is contained in:
2025-04-08 19:00:17 +08:00
parent 6b3137e015
commit d17c1b8ed7
6 changed files with 179 additions and 106 deletions
-27
View File
@@ -258,33 +258,6 @@ async def _(session: Uninfo):
res = await g_pFarmManager.reclamation(uid)
await MessageUtils.build_message(res).send(reply_to=True)
diuse_farm.shortcut(
"开垦",
command="我的农场",
arguments=["reclamation"],
prefix=True,
)
@diuse_farm.assign("reclamation")
async def _(session: Uninfo):
uid = str(session.user.id)
point = await g_pSqlManager.getUserPointByUid(uid)
if point < 0:
await MessageUtils.build_message("尚未开通农场,快at我发送 开通农场 开通吧").send()
return None
result = await g_pFarmManager.getUserPlantByUid(uid)
await MessageUtils.build_message(result).send(reply_to=True)
diuse_farm.set_path_arg("reclamation", "result")
@diuse_farm.got_path("test", "测试一下")
async def _(name: str):
await MessageUtils.build_message(name).send(reply_to=True)
diuse_farm.shortcut(
"出售作物(?P<name>.*?)",
command="我的农场",