更新依赖

This commit is contained in:
lyswhut
2023-03-17 14:40:56 +08:00
parent 37ad2f522a
commit 19286ef99d
9 changed files with 314 additions and 259 deletions
+1
View File
@@ -61,6 +61,7 @@ const codeAuth = async(urlInfo: LX.Sync.Client.UrlInfo, serverId: string, authCo
const keyAuth = async(urlInfo: LX.Sync.Client.UrlInfo, keyInfo: LX.Sync.ClientKeyInfo) => {
const msg = aesEncrypt(SYNC_CODE.authMsg + getComputerName(), keyInfo.key)
// eslint-disable-next-line @typescript-eslint/promise-function-async
return request(`${urlInfo.httpProtocol}//${urlInfo.hostPath}/ah`, { headers: { i: keyInfo.clientId, m: msg } }).then(({ text, code }) => {
if (code != 200) throw new Error(SYNC_CODE.authFailed)