更新若干
This commit is contained in:
1 parent
54c90072fb
commit
5682069553
59 files changed
+3813
-1617
No files matched your search
+22
-2
@@ -16,7 +16,8 @@ export function loginUAC(data) {
|
||||
return request({
|
||||
url: '/auth/login',
|
||||
method: 'POST',
|
||||
data: Object.assign({ client_id: clientId }, data)
|
||||
data: Object.assign({ client_id: clientId }, data),
|
||||
skipAuthRedirect: true
|
||||
})
|
||||
}
|
||||
|
||||
@@ -86,7 +87,8 @@ export function loginByMiniapp({ code, phoneCode = '' } = {}) {
|
||||
client_id: 'yz-miniapp',
|
||||
code,
|
||||
phone_code: phoneCode
|
||||
}
|
||||
},
|
||||
skipAuthRedirect: true
|
||||
})
|
||||
}
|
||||
|
||||
@@ -136,6 +138,24 @@ export function sendLoginCode(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function sendAuthLoginCode(data) {
|
||||
return request({
|
||||
url: '/auth/login/code/send',
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function loginByAuthCode(data) {
|
||||
const clientId = 'yz-miniapp'
|
||||
return request({
|
||||
url: '/auth/login/code/verify',
|
||||
method: 'POST',
|
||||
data: Object.assign({ client_id: clientId }, data),
|
||||
skipAuthRedirect: true
|
||||
})
|
||||
}
|
||||
|
||||
export function loginBySms(data) {
|
||||
return request({
|
||||
url: '/api/loginBySms',
|
||||
|
||||
Reference in new issue
Block a user