🐛 Change genshin resin limit to 60-200

This commit is contained in:
xtaodada 2024-06-14 22:34:07 +08:00
parent 4d37de28b6
commit ceadff9a40
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ class DailyNoteTasksPlugin(Plugin.Conversation):
validate = WebAppData(**result.data)
except ValidationError:
await message.reply_text(
"数据错误\n树脂提醒数值必须在 100 ~ 160 之间\n洞天宝钱提醒数值必须在 100 ~ 2400 之间\n每日任务提醒时间必须在 0 ~ 23 之间",
"数据错误\n树脂提醒数值必须在 60 ~ 200 之间\n洞天宝钱提醒数值必须在 100 ~ 2400 之间\n每日任务提醒时间必须在 0 ~ 23 之间",
reply_markup=ReplyKeyboardRemove(),
)
return ConversationHandler.END

View File

@ -32,8 +32,8 @@ class ResinData(TaskDataBase):
@validator("notice_num")
def notice_num_validator(cls, v):
if v < 100 or v > 160:
raise ValueError("树脂提醒数值必须在 100 ~ 160 之间")
if v < 60 or v > 200:
raise ValueError("树脂提醒数值必须在 60 ~ 200 之间")
return v