1
0
mirror of https://github.com/IceWhaleTech/CasaOS.git synced 2025-07-15 23:54:17 +02:00

Send notification changes to message bus (#861)

This commit is contained in:
link
2023-02-06 15:47:29 +08:00
committed by GitHub
parent 76bc6e68ae
commit 173997c44b
18 changed files with 2436 additions and 158 deletions

View File

@ -14,15 +14,15 @@ import (
"strconv"
"strings"
"github.com/IceWhaleTech/CasaOS/common"
"github.com/IceWhaleTech/CasaOS/model"
"github.com/IceWhaleTech/CasaOS/types"
)
func IsNeedUpdate(version model.Version) (bool, model.Version) {
v1 := strings.Split(version.Version, ".")
v2 := strings.Split(types.CURRENTVERSION, ".")
v2 := strings.Split(common.VERSION, ".")
for len(v1) < len(v2) {
v1 = append(v1, "0")