This commit is contained in:
test
2025-08-22 20:45:56 +08:00
parent 64901a39d3
commit f7a760f581
11 changed files with 557 additions and 208 deletions

View File

@@ -13,6 +13,10 @@ function encodeURLEncoder(str) {
// 刷新token
async function refreshToken(userId, token) {
if (userId == null || userId == undefined || token == null || token == undefined) {
return false
}
// 请求体data加密前
const time = Math.floor(Date.now() / 1000)
const baseData = `{"userToken":"${token}","autoDelay":true,"deviceId":"","userId":"${userId}","timestamp":"${time}"}`