From e0ee4d9797c7ab3af04fe0b0f21de31ba0d3f9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=92=8C?= <496631085@qq.com> Date: Thu, 3 Sep 2026 08:55:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(Sms):=20=E4=BF=AE=E6=AD=A3=20send()=20?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=B8=AD=E9=AA=8C=E8=AF=81=E7=A0=81=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E4=BD=8D=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit send() 中 Random::numeric(config('fastadmin.sms_captcha_length') ?: 6) 当 sms_captcha_length 未配置时默认生成 6 位数字,注释误写为 4 位 --- application/common/library/Sms.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/common/library/Sms.php b/application/common/library/Sms.php index b6376af9..0600d2f1 100644 --- a/application/common/library/Sms.php +++ b/application/common/library/Sms.php @@ -44,7 +44,7 @@ class Sms * 发送验证码 * * @param int $mobile 手机号 - * @param int $code 验证码,为空时将自动生成4位数字 + * @param int $code 验证码,为空时将自动生成6位数字 * @param string $event 事件 * @return boolean */ -- Gitee From 385738c9330785fb385afd66780bc1864a31e221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=92=8C?= <496631085@qq.com> Date: Thu, 3 Sep 2026 09:18:37 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix(library):=20=E4=BF=AE=E6=AD=A3=20Ems/Em?= =?UTF-8?q?ail=20=E6=B3=A8=E9=87=8A=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Ems::send() 默认生成 6 位验证码,同步 Sms.php 的修改 - Email::setError() @param 注释错别字 信息信息 -> 错误信息 --- application/common/library/Email.php | 2 +- application/common/library/Ems.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/common/library/Email.php b/application/common/library/Email.php index d8756b2a..69332c9a 100644 --- a/application/common/library/Email.php +++ b/application/common/library/Email.php @@ -196,7 +196,7 @@ class Email /** * 设置错误 - * @param string $error 信息信息 + * @param string $error 错误信息 */ protected function setError($error) { diff --git a/application/common/library/Ems.php b/application/common/library/Ems.php index f6967884..51c3618b 100644 --- a/application/common/library/Ems.php +++ b/application/common/library/Ems.php @@ -44,7 +44,7 @@ class Ems * 发送验证码 * * @param int $email 邮箱 - * @param int $code 验证码,为空时将自动生成4位数字 + * @param int $code 验证码,为空时将自动生成6位数字 * @param string $event 事件 * @return boolean */ -- Gitee