20260622214432
This commit is contained in:
1 parent
b5f6fafd74
commit
e9e3371be7
19 files changed
+1068
-121
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import type { LoginQqParams, LoginResult, LoginWxParams } from "@/types/auth";
|
||||
import type { LoginQqParams, LoginResult, LoginTestParams, LoginWxParams } from "@/types/auth";
|
||||
import alovaInstance from "./index";
|
||||
|
||||
export function loginQqApi(params: LoginQqParams) {
|
||||
@@ -9,6 +9,10 @@ export function loginWxApi(params: LoginWxParams) {
|
||||
return alovaInstance.Post<ResponseData<LoginResult>>(`/auth/login/wechat`, params);
|
||||
}
|
||||
|
||||
export function loginTestApi(params: LoginTestParams) {
|
||||
return alovaInstance.Post<ResponseData<LoginResult>>(`/auth/login/test`, params);
|
||||
}
|
||||
|
||||
export function bindQqApi(params: LoginQqParams) {
|
||||
return alovaInstance.Post<ResponseData<null>>(`/bind/qq`, params);
|
||||
}
|
||||
|
||||
@@ -62,6 +62,8 @@ const alovaInstance = createAlova({
|
||||
},
|
||||
|
||||
beforeRequest(method) {
|
||||
console.log(process.env.EXPO_PUBLIC_API_URL)
|
||||
|
||||
// 白名单接口直接放行
|
||||
if (isWhiteListed(method.url)) return;
|
||||
|
||||
|
||||
Reference in new issue
Block a user