修改认证参数为110

This commit is contained in:
2026-01-27 18:51:44 +08:00
parent ed2be2a938
commit ae5e5dc08a

View File

@@ -585,7 +585,7 @@
}, },
// 认证登录 // 认证登录
async certifyLogin(){ async certifyLogin(){
let type = '100' let type = '110'
let redirectUri = location.origin + '/pages/login/index?' + encodeURIComponent(`type=${type}&redirect=/`) let redirectUri = location.origin + '/pages/login/index?' + encodeURIComponent(`type=${type}&redirect=/`)
const res = await socialAuthRedirect(type,encodeURIComponent(redirectUri)) const res = await socialAuthRedirect(type,encodeURIComponent(redirectUri))
console.log(res,'res-------') console.log(res,'res-------')
@@ -593,7 +593,7 @@
}, },
async exchangeToken(options) { async exchangeToken(options) {
try { try {
const type = '100' const type = '110'
const code = options?.code const code = options?.code
const state =options?.state || this.uuid() const state =options?.state || this.uuid()
const res = await socialLogin(type, code, state) const res = await socialLogin(type, code, state)