diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 4a2881b5..6af07674 100644 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -105,7 +105,7 @@ class UserController extends Controller $remain = 60 + session('last_mail_time', 0) - time(); if ($remain > 0) { - return json(trans('user.verification.frequent-mail', compact('remain')), 1); + return json(trans('user.verification.frequent-mail'), 1); } if ($this->user->verified) { diff --git a/resources/lang/en/user.yml b/resources/lang/en/user.yml index 2b22d282..8014be98 100644 --- a/resources/lang/en/user.yml +++ b/resources/lang/en/user.yml @@ -15,7 +15,7 @@ sign-remain-time: Available after :time :unit announcement: Announcement verification: - frequent-mail: You click the send button too fast. Wait for :remain secs, guy. + frequent-mail: You click the send button too fast. Wait for 60 secs, guy. verified: Your account is already verified. success: Verification link was sent, please check your inbox. failed: We failed to send you the verification link. Detailed message :msg diff --git a/resources/lang/zh_CN/user.yml b/resources/lang/zh_CN/user.yml index a5caf111..e304bdbc 100644 --- a/resources/lang/zh_CN/user.yml +++ b/resources/lang/zh_CN/user.yml @@ -15,7 +15,7 @@ sign-remain-time: :time :unit 后可签到 announcement: 公告 verification: - frequent-mail: 你邮件发送得太频繁啦,过 :remain 秒后再点发送吧 + frequent-mail: 你邮件发送得太频繁啦,过 60 秒后再点发送吧 verified: 你已经验证过邮箱了 success: 验证邮件已发送,请检查你的收件箱。 failed: 邮件发送失败,详细信息::msg