Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop

This commit is contained in:
laodaming 2023-11-24 13:07:54 +08:00
commit b86b968e36

View File

@ -8,6 +8,7 @@ import (
"fmt"
"fusenapi/utils/fssql"
"fusenapi/utils/handlers"
"log"
"github.com/tidwall/gjson"
"gorm.io/gorm"
@ -115,7 +116,9 @@ func (m *FsUserInfoModel) GetProfile(ctx context.Context, pkey string, userId in
}
if logoSelected := gjson.Get(v, "logo_selected"); logoSelected.Exists() {
log.Println(logoSelected)
if ver := logoSelected.Get("version"); ver.Exists() && ver.String() == versionML {
log.Println(ver)
return info, nil
}
}