新增 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
+1
View File
@@ -12,6 +12,7 @@ import type { IdType } from '@/utils/id'
export interface SendVerificationCodeRequest {
phone: string
sceneCode?: string
clientType?: string
}
/**
+1 -1
View File
@@ -385,7 +385,7 @@ export const userApi = {
* Call guide: supply the parameters below, await the returned Promise, and handle loading / error UI in the caller.
* @param data: { phone: string; sceneCode?: string } caller-supplied value for `data: { phone: string; sceneCode?: string }`
*/
sendVerificationCode: (data: { phone: string; sceneCode?: string }) => {
sendVerificationCode: (data: { phone: string; sceneCode?: string; clientType?: string }) => {
return api.post('/user/send-verification-code', data)
},
/**