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

No files matched your search

+5 -1
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 {