新增 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
+2 -2
View File
@@ -39,10 +39,10 @@ export const authApi = {
return adminApi.get(`/auth/login-shops/${encodeURIComponent(account)}`)
},
sendRegisterCode(phone: string): Promise<boolean> {
return api.post('/user/send-verification-code', { phone, sceneCode: 'PLANNING_MANAGER_REGISTER' })
return api.post('/user/send-verification-code', { phone, sceneCode: 'PLANNING_MANAGER_REGISTER', clientType: 'MANAGER_WEB' })
},
sendLoginCode(phone: string): Promise<boolean> {
return api.post('/user/send-verification-code', { phone, sceneCode: 'USER_LOGIN_SMS_CODE' })
return api.post('/user/send-verification-code', { phone, sceneCode: 'USER_LOGIN_SMS_CODE', clientType: 'MANAGER_WEB' })
},
phoneLogin(data: PhoneLoginRequest): Promise<LoginResponse> {
return api.post('/user/phone-login', data)