Skip to content

Commit

Permalink
fix crash and fix migration qqwry #161 (#162)
Browse files Browse the repository at this point in the history
* fix crash #161

* fix migration qqwry
  • Loading branch information
oldshensheep authored May 1, 2023
1 parent de355d1 commit 748c5cf
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions internal/migration/v7.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}

Expand Down

0 comments on commit 748c5cf

Please sign in to comment.