This commit is contained in:
Liang Ding 2023-02-06 22:05:45 +08:00
parent 94f623f82a
commit b9f44309cb
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
11 changed files with 15 additions and 14 deletions

View file

@ -97,7 +97,9 @@ func SyncData(boot, exit, byHand bool) {
func syncData(boot, exit, byHand bool) {
defer logging.Recover()
util.BroadcastByType("main", "syncing", 0, Conf.Language(81), nil)
if !checkSync(boot, exit, byHand) {
util.BroadcastByType("main", "syncing", 1, "", nil)
return
}
@ -118,7 +120,6 @@ func syncData(boot, exit, byHand bool) {
now := util.CurrentTimeMillis()
Conf.Sync.Synced = now
util.BroadcastByType("main", "syncing", 0, Conf.Language(81), nil)
err := syncRepo(exit, byHand)
synced := util.Millisecond2Time(Conf.Sync.Synced).Format("2006-01-02 15:04:05") + "\n\n"
if nil == err {