bug修复
This commit is contained in:
@@ -9,7 +9,7 @@ export interface OauthTokenRequest {
|
|||||||
scope?: string;
|
scope?: string;
|
||||||
mobile?: string;
|
mobile?: string;
|
||||||
code?: string;
|
code?: string;
|
||||||
clientConfigld?: string;
|
clientConfigId?: string;
|
||||||
[property: string]: any;
|
[property: string]: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ export async function oauthToken(
|
|||||||
const params = buildFormUrlEncodedParams({
|
const params = buildFormUrlEncodedParams({
|
||||||
...data,
|
...data,
|
||||||
clientId: data.clientId ?? getRequestContext().clientId ?? "6",
|
clientId: data.clientId ?? getRequestContext().clientId ?? "6",
|
||||||
clientConfigld: data.clientConfigld ?? getRequestContext().clientId ?? "6",
|
clientConfigId: data.clientConfigId ?? getRequestContext().clientId ?? "6",
|
||||||
} as Record<string, unknown>);
|
} as Record<string, unknown>);
|
||||||
|
|
||||||
const res = await requestRaw<OAuthTokenResponse>(
|
const res = await requestRaw<OAuthTokenResponse>(
|
||||||
|
|||||||
Reference in New Issue
Block a user