抢购完成后自动刷新小店资产

This commit is contained in:
yml2213
2026-08-09 15:08:10 +08:00
parent 754e3f1ca8
commit 2e9847e15d
3 changed files with 31 additions and 9 deletions
+2 -1
View File
@@ -199,11 +199,12 @@ func (s *Scheduler) runXiaodianAttempt(attempt types.ExchangeAttempt) types.Exch
return result
}
roleName, err := cli.RoleName(attempt.Account.Cookie)
role, err := cli.XiaodianRole(attempt.Account.Cookie)
if err != nil {
logger.LogAccountEvent("抢购", "warn", attempt.Account.Name,
"角色名查询失败: 账号=%s err=%v", attempt.Account.Name, err)
}
roleName := role.RoleName
result.OK = true
result.RoleName = roleName
if roleName != "" {