We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de355d1 commit 748c5cfCopy full SHA for 748c5cf
internal/migration/v7.go
@@ -28,11 +28,13 @@ func migration2v7() {
28
29
needOverwrite := false
30
for _, adb := range dbList {
31
- if adb.Name == "qqwry" &&
32
- (adb.DownloadUrls[0] == "https://99wry.cf/qqwry.dat" ||
33
- strings.Contains(adb.DownloadUrls[0], "sspanel-uim")) {
34
- needOverwrite = true
35
- 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
36
+ adb.DownloadUrls = qqwry.DownloadUrls
37
+ }
38
}
39
40
0 commit comments