feat: 编码签名

This commit is contained in:
“张嘉宁” 2023-04-04 10:58:00 +08:00
parent 79184e81d7
commit 7af9f26aae

View File

@ -43,7 +43,7 @@ function getHeaders() {
} }
export function validUser(signature: String) { export function validUser(signature: String) {
return fetch(`//uc.zhiketong.net/api/check_user_white/?signature=${signature}`) return fetch(`//uc.zhiketong.net/api/check_user_white/?signature=${window.encodeURIComponent(`${signature}`)}`)
.then((response) => response.json()) .then((response) => response.json())
.then((data) => { .then((data) => {
return { return {