mirror of
https://github.com/zu1k/nali.git
synced 2025-01-22 13:19:02 +08:00
* fix crash #161 * fix migration qqwry
This commit is contained in:
parent
de355d1f7a
commit
748c5cf4a8
@ -28,13 +28,15 @@ 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")) {
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if needOverwrite {
|
||||
viper.Set("databases", dbList)
|
||||
|
Loading…
Reference in New Issue
Block a user