diff --git a/internal/migration/v7.go b/internal/migration/v7.go index f75cbe4a..c6543c79 100644 --- a/internal/migration/v7.go +++ b/internal/migration/v7.go @@ -28,11 +28,13 @@ func migration2v7() { needOverwrite := false for _, adb := range dbList { - if adb.Name == "qqwry" && - (adb.DownloadUrls[0] == "https://99wry.cf/qqwry.dat" || - strings.Contains(adb.DownloadUrls[0], "sspanel-uim")) { - needOverwrite = true - adb.DownloadUrls = qqwry.DownloadUrls + if adb.Name == "qqwry" { + if len(adb.DownloadUrls) == 0 || + adb.DownloadUrls[0] == "https://99wry.cf/qqwry.dat" || + strings.Contains(adb.DownloadUrls[0], "sspanel-uim") { + needOverwrite = true + adb.DownloadUrls = qqwry.DownloadUrls + } } }