sunsheng 1 year ago
parent
commit
ef377e3608
1 changed files with 4 additions and 1 deletions
  1. 4 1
      main.go

+ 4 - 1
main.go

@@ -243,7 +243,7 @@ func main() {
 			fmt.Println("写入output/db.json错误:", err)
 			return
 		}
-		utils.WriteAppConfig(&utils.App{
+		err = utils.WriteAppConfig(&utils.App{
 			Name:           appConf.Name,
 			Version:        appVersion.Version,
 			LastUpdateDate: time.Now().Format("2006-01-02"),
@@ -257,6 +257,9 @@ func main() {
 			Key:            appVersion.Name,
 			InstCount:      appVersion.InstCount,
 		}, "./")
+		if err != nil {
+			fmt.Println("更新app.json错误: ", err)
+		}
 
 		fmt.Println("输出文件目录=>: output")
 		time.Sleep(3 * time.Second)