Commit bc7e60c7 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'fix/match' into 'main'

修复娱乐匹配中萌卡账号名称是中文名的情况会出错的问题

See merge request !307
parents 93bd20cc ce2c0d7c
......@@ -11,7 +11,10 @@ export async function match(
extraId: number,
arena: string = "entertain",
): Promise<MatchInfo | undefined> {
const headers = { Authorization: "Basic " + btoa(username + ":" + extraId) };
const headers = {
Authorization:
"Basic " + btoa(encodeURIComponent(username) + ":" + extraId),
};
let response: Response | undefined = undefined;
const params = new URLSearchParams({
arena,
......
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