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