From c8adb52660c514ddc5f8c9cc464d59a34d3b27b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Mon, 14 Feb 2022 18:23:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/connect.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/connect.js b/api/connect.js index f821198..33f7547 100644 --- a/api/connect.js +++ b/api/connect.js @@ -15,7 +15,7 @@ const request = http.request; */ export function webConnect(code) { return http.request({ - url: `connect/login/web/${code}`, + url: `passport/connect/connect/login/web/${code}`, method: Method.GET, needToken: true, header: { @@ -25,7 +25,7 @@ export function webConnect(code) { } export function openIdLogin(params, clientType) { return http.request({ - url: `connect/app/login`, + url: `passport/connect/connect/app/login`, method: Method.GET, needToken: true, data: params, @@ -40,7 +40,7 @@ export function openIdLogin(params, clientType) { */ export function loginCallback(state) { return http.request({ - url: `connect/result?state=${state}`, + url: `passport/connect/connect/result?state=${state}`, method: Method.GET, needToken: false }); @@ -54,7 +54,7 @@ export function loginCallback(state) { */ export function mpAutoLogin(params) { return http.request({ - url: 'mini-program/auto-login', + url: 'passport/connect/mini-program/auto-login', method: Method.GET, params });