Skip to content

Commit

Permalink
交互提示
Browse files Browse the repository at this point in the history
  • Loading branch information
Hobr committed Jun 30, 2024
1 parent 9bf2dea commit 7b47037
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion interface/CLI/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def NoticeStep() -> tuple[bool, bool, bool, str]:
}
select = self.data.Inquire(
type="Checkbox",
message="抢票成功通知方式",
message="抢票成功通知方式, 按空格勾选",
choices=[
("系统提醒", "system"),
("音频提醒", "sound"),
Expand Down
6 changes: 5 additions & 1 deletion interface/CLI/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,14 @@ def BuyerStep() -> list:

select = self.data.Inquire(
type="Checkbox",
message="请选择购票人",
message="请选择购票人, 按空格勾选, 完成后回车, 请确认该活动最多支持几人购票!",
choices=list(choice.keys()),
)

if len(select) == 0:
logger.error("【选择购买人】没人购买是吧?")
return BuyerStep()

dist = []
for i in select:
id = choice[i]
Expand Down

0 comments on commit 7b47037

Please sign in to comment.