🎨 更新了对数据库的表、字段判断
This commit is contained in:
-27
@@ -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="我的农场",
|
||||
|
||||
Reference in New Issue
Block a user