修改接口地址

master
lemon橪 2022-02-14 18:23:00 +08:00
parent 4f74502951
commit c8adb52660
1 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ const request = http.request;
*/ */
export function webConnect(code) { export function webConnect(code) {
return http.request({ return http.request({
url: `connect/login/web/${code}`, url: `passport/connect/connect/login/web/${code}`,
method: Method.GET, method: Method.GET,
needToken: true, needToken: true,
header: { header: {
@ -25,7 +25,7 @@ export function webConnect(code) {
} }
export function openIdLogin(params, clientType) { export function openIdLogin(params, clientType) {
return http.request({ return http.request({
url: `connect/app/login`, url: `passport/connect/connect/app/login`,
method: Method.GET, method: Method.GET,
needToken: true, needToken: true,
data: params, data: params,
@ -40,7 +40,7 @@ export function openIdLogin(params, clientType) {
*/ */
export function loginCallback(state) { export function loginCallback(state) {
return http.request({ return http.request({
url: `connect/result?state=${state}`, url: `passport/connect/connect/result?state=${state}`,
method: Method.GET, method: Method.GET,
needToken: false needToken: false
}); });
@ -54,7 +54,7 @@ export function loginCallback(state) {
*/ */
export function mpAutoLogin(params) { export function mpAutoLogin(params) {
return http.request({ return http.request({
url: 'mini-program/auto-login', url: 'passport/connect/mini-program/auto-login',
method: Method.GET, method: Method.GET,
params params
}); });