新增 SPUG 短信模板与短信兜底发送

This commit is contained in:
2026-07-10 12:27:35 +08:00
parent f19a609462
commit 58a7932f54
28 changed files with 1125 additions and 206 deletions
+4 -2
View File
@@ -847,7 +847,8 @@ Page({
try {
await runWithLoading(() => userApi.sendVerificationCode({
phone,
sceneCode: this.data.activeTab === 'register' ? 'USER_REGISTER_SMS_CODE' : 'USER_LOGIN_SMS_CODE'
sceneCode: this.data.activeTab === 'register' ? 'USER_REGISTER_SMS_CODE' : 'USER_LOGIN_SMS_CODE',
clientType: 'WECHAT_MINI'
}))
wx.showToast({
title: '验证码已发送',
@@ -883,7 +884,8 @@ Page({
try {
await runWithLoading(() => authApi.sendVerificationCode({
phone,
sceneCode: 'USER_RESET_PASSWORD_SMS_CODE'
sceneCode: 'USER_RESET_PASSWORD_SMS_CODE',
clientType: 'WECHAT_MINI'
}))
wx.showToast({
title: '验证码已发送',