This commit is contained in:
2025-09-30 10:52:14 +03:00
parent cf584c8123
commit 0903c452d9
3 changed files with 9 additions and 1 deletions

View File

@@ -28,7 +28,11 @@ func (de DecortClient) Check() (*CheckInfo, error) {
err = json.Unmarshal([]byte(strings.Replace(strings.Trim(string(res), `"`), "\\", "", -1)), &info)
if err != nil {
return nil, err
if _, exists := constants.VersionMap[string(res)]; exists {
info.Version = string(res)
} else {
return nil, err
}
}
if v, ok := constants.VersionMap[info.Version]; ok {