Commit 5bad5d25 authored by 俞嘉婷's avatar 俞嘉婷

feat: 免登联调

parent 0e81ca23
......@@ -49,19 +49,20 @@ Page({
success: async (res) => {
console.log(111, res)
if (res.code) {
const loginUrl = `${DEFAULT_PROJECT[this.env]?.loginDomain}/wechat/wine/autoLogin?code=${res.code}&redirect=${encodeURIComponent(redirectUrl)}`
const loginUrl = `${DEFAULT_PROJECT[this.env]?.loginDomain}/wechat/wine/autoLogin`
console.log('免登接口:', loginUrl)
// this.setData({
// path: loginUrl,
// })
wx.request({
url: loginUrl,
method: 'GET',
data: {
code: res.code,
redirect: redirectUrl
},
method: 'POST',
success: res => {
console.log('login', res)
if (res.statusCode == 200) {
this.setData({
path: res.data,
path: res.data?.data?.redirectUrl,
})
} else {
wx.showToast({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment