From 4529935806620fb44ed561369e269659f30e9d0e Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Thu, 16 Nov 2023 20:27:26 +0800 Subject: [PATCH] pref: error --- .vscode/settings.json | 1 + src/error/errorI18n.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index b9bb8507..dcbf5f43 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,6 +15,7 @@ "Chuudoku", "Codepen", "commonmark", + "cooldown", "cout", "dompurify", "fontawesome", diff --git a/src/error/errorI18n.ts b/src/error/errorI18n.ts index 5af3516b..07338005 100644 --- a/src/error/errorI18n.ts +++ b/src/error/errorI18n.ts @@ -13,6 +13,7 @@ const errorMessagesEN: Record = { 10109: `Invalid Email or Verification Code Format (-B)`, 10110: `Avatar image upload error. The image is an array. (-B)`, 10111: `Avatar image upload error. The final compressed size of the image exceeds 50KB. (-B)`, + 10112: `In cooldown for login, two identical login attempts should have a one-minute interval. (-B)`, // Topic Part 10201: `Your daily topic limit has been reached for today. (-B)`, @@ -49,6 +50,7 @@ const errorMessagesCN: Record = { 10109: `非法的邮箱或验证码格式 (-B)`, 10110: `头像上传错误. 图片为数组 (-B)`, 10111: `头像上传错误. 图片最终压缩大小超过 50kb (-B)`, + 10112: `登陆冷却中,两次相同登陆时间间隔一分钟 (-B)`, 10201: `您今日可以发表的话题数已达上限 (-B)`, 10202: `您的萌萌点不足 1100, 无法使用推话题功能 (-B)`,