收紧店务端验证码登录准入

This commit is contained in:
2026-07-06 17:35:12 +08:00
parent 3c041e0895
commit 7d7d23a3d2
8 changed files with 124 additions and 6 deletions
@@ -2,6 +2,7 @@ const API_AUTH_FREE_PATHS = [
'/user/send-verification-code',
'/user/phone-login',
'/user/check/login-shops/phone/',
'/user/check/manager-login-shops/phone/',
'/legal-agreement/current'
]
+3
View File
@@ -50,6 +50,9 @@ export const authApi = {
getPhoneLoginShops(phone: string): Promise<LoginShopSelectionResponse> {
return api.get(`/user/check/login-shops/phone/${encodeURIComponent(phone)}`)
},
getManagerPhoneLoginShops(phone: string): Promise<LoginShopSelectionResponse> {
return api.get(`/user/check/manager-login-shops/phone/${encodeURIComponent(phone)}`)
},
getCurrentAgreements(): Promise<LegalAgreement[]> {
return api.get('/legal-agreement/current')
},