wakeupParasite token

This commit is contained in:
wangwenchen 2024-03-14 15:47:53 +08:00
parent 63ddd648ac
commit 8a79d2d90c
3 changed files with 6 additions and 6 deletions

View File

@ -1298,7 +1298,8 @@ export async function wakeupParasite(params, context) {
playerId: parasite.userId,
disablesAt: Date.now() + parasite.tokenLifeLength,
env,
tokenValue,
refreshedAt: Date.now(),
value: tokenValue,
applicationId: context.getApplicationId(),
},
}, { dontCollect: true });
@ -1330,7 +1331,6 @@ function checkTokenEnvConsistency(env1, env2) {
return false;
}
}
return true;
}
export async function refreshToken(params, context) {
const { env, tokenValue } = params;

View File

@ -1312,7 +1312,8 @@ async function wakeupParasite(params, context) {
playerId: parasite.userId,
disablesAt: Date.now() + parasite.tokenLifeLength,
env,
tokenValue,
refreshedAt: Date.now(),
value: tokenValue,
applicationId: context.getApplicationId(),
},
}, { dontCollect: true });
@ -1345,7 +1346,6 @@ function checkTokenEnvConsistency(env1, env2) {
return false;
}
}
return true;
}
async function refreshToken(params, context) {
const { env, tokenValue } = params;

View File

@ -1848,7 +1848,8 @@ export async function wakeupParasite<
playerId: parasite.userId,
disablesAt: Date.now() + parasite.tokenLifeLength!,
env,
tokenValue,
refreshedAt: Date.now(),
value: tokenValue,
applicationId: context.getApplicationId(),
},
},
@ -1885,7 +1886,6 @@ function checkTokenEnvConsistency(env1: WebEnv | WechatMpEnv | NativeEnv, env2:
return false;
}
}
return true;
}
export async function refreshToken<