升级版本并改用内部账号存储
This commit is contained in:
@@ -129,7 +129,7 @@ func New(cli *client.DouyuClient, paths types.AppPaths, font *truetype.Font, con
|
||||
client: cli,
|
||||
paths: paths,
|
||||
font: font,
|
||||
accounts: NewAccountStore(paths.AccountFile),
|
||||
accounts: NewAccountStore(paths.AccountFile, paths.LegacyAccountFile),
|
||||
successImages: image.NewSuccessImageSaver(
|
||||
font,
|
||||
paths.SuccessDir,
|
||||
@@ -260,7 +260,7 @@ func normalizeSeckillMode(mode types.SeckillMode) types.SeckillMode {
|
||||
|
||||
// ==================== 账号转发(AccountStore) ====================
|
||||
|
||||
// LoadAccounts 从账号文件加载账号。
|
||||
// LoadAccounts 从应用内部账号库加载账号。
|
||||
func (s *Scheduler) LoadAccounts() {
|
||||
s.accounts.Load()
|
||||
}
|
||||
@@ -270,7 +270,7 @@ func (s *Scheduler) AccountCount() int {
|
||||
return s.accounts.Count()
|
||||
}
|
||||
|
||||
// AccountFilePath 返回账号文件路径。
|
||||
// AccountFilePath 返回内部账号库路径。
|
||||
func (s *Scheduler) AccountFilePath() string {
|
||||
return s.accounts.FilePath()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user