对接阿里云短信OK

This commit is contained in:
yml2213
2026-05-29 12:11:13 +08:00
parent a334f1837d
commit eb80a3ba84
14 changed files with 495 additions and 29 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ export function useSmsCountdown() {
try {
await sendSmsCode(phone);
showToast({
message: "验证码已发送,开发环境请查看后端日志",
message: "验证码已发送,请注意查收",
icon: "passed",
});
startCountDown();
+2 -4
View File
@@ -45,7 +45,7 @@ async function handleSendCode() {
sending.value = true;
try {
await sendSmsCode(form.phone);
ElMessage.success("验证码已生成,请查看后端日志");
ElMessage.success("验证码已发送,请注意查收");
startCountDown();
} catch (error) {
ElMessage.error(readError(error, "验证码发送失败"));
@@ -152,9 +152,7 @@ function readError(error: unknown, fallback: string) {
登录
</el-button>
<p class="login-notice">
当前为开发态短信适配器验证码会打印在后端日志中
</p>
<p class="login-notice">未收到验证码时请稍后重试或联系客服处理</p>
</el-form>
</div>
</div>