features.token修改

This commit is contained in:
lxy 2024-08-22 19:01:30 +08:00
parent 5157bc73f3
commit c5e4704dd0
1 changed files with 1 additions and 5 deletions

View File

@ -98,7 +98,6 @@ export class Token<ED extends EntityDict> extends Feature {
async loginByMobile(
mobile: string,
password?: string,
captcha?: string,
disableRegister?: boolean
) {
@ -106,7 +105,6 @@ export class Token<ED extends EntityDict> extends Feature {
const { result } = await this.cache.exec(
'loginByMobile',
{
password,
mobile,
captcha,
disableRegister,
@ -145,7 +143,6 @@ export class Token<ED extends EntityDict> extends Feature {
async loginByAccount(
account: string,
password: string,
disableRegister?: boolean
) {
const env = await this.environment.getEnv();
const { result } = await this.cache.exec(
@ -153,14 +150,13 @@ export class Token<ED extends EntityDict> extends Feature {
{
account,
password,
disableRegister,
env,
},
undefined,
true
);
this.tokenValue = result;
// await this.storage.save(LOCAL_STORAGE_KEYS.token, result);
await this.storage.save(LOCAL_STORAGE_KEYS.token, result);
this.publish();
}