sunsheng vor 1 Jahr
Ursprung
Commit
2b05578884
1 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. 5 5
      main.go

+ 5 - 5
main.go

@@ -227,17 +227,17 @@ func main() {
 		fmt.Println("更新version成功")
 		err = utils.WriteVersionDb(&utils.Version{
 			Label:     appVersion.Label,
-			Name:      appConf.Key,
+			Name:      appVersion.Name,
 			Icon:      appVersion.Icon,
 			Type:      appVersion.Type,
-			Version:   version,
-			SizeM:     size,
-			Url:       obsUrl,
+			Version:   appVersion.Version,
+			SizeM:     int(appVersion.SizeM),
+			Url:       appVersion.Url,
 			Platform:  appVersion.Platform,
 			Thumbnail: appVersion.Thumbnail,
 			Desc:      appVersion.Desc,
 			AppType:   appVersion.AppType,
-			InstCount: appConf.InstCount,
+			InstCount: appVersion.InstCount,
 		}, outputDb)
 		if err != nil {
 			fmt.Println("写入output/db.json错误:", err)