Skip to content

Commit

Permalink
更改登录状态判定方式
Browse files Browse the repository at this point in the history
修复windows上因timezone导致的fatal问题
  • Loading branch information
XiaoMengXinX committed Nov 13, 2021
1 parent 8cf84a5 commit b5ca39d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Build ARCH: %s

func startCron() {
if config.Cron.Enabled {
location, err := time.LoadLocation("Asia/Shanghai")
location, err := time.LoadLocation("Asia/Hong_Kong")
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -174,7 +174,7 @@ func startTasks() {
if err != nil {
log.Errorln(err)
}
if userData.Account.Id == 0 {
if userData.Profile.UserId == 0 {
log.Errorf("获取 User[%d] 登录状态失败, 请检查 MUSIC_U 是否失效", processingUser)
} else {
err = autoTasks(userData, data)
Expand Down

0 comments on commit b5ca39d

Please sign in to comment.