Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop
This commit is contained in:
commit
b86b968e36
|
@ -8,6 +8,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"fusenapi/utils/fssql"
|
"fusenapi/utils/fssql"
|
||||||
"fusenapi/utils/handlers"
|
"fusenapi/utils/handlers"
|
||||||
|
"log"
|
||||||
|
|
||||||
"github.com/tidwall/gjson"
|
"github.com/tidwall/gjson"
|
||||||
"gorm.io/gorm"
|
"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() {
|
if logoSelected := gjson.Get(v, "logo_selected"); logoSelected.Exists() {
|
||||||
|
log.Println(logoSelected)
|
||||||
if ver := logoSelected.Get("version"); ver.Exists() && ver.String() == versionML {
|
if ver := logoSelected.Get("version"); ver.Exists() && ver.String() == versionML {
|
||||||
|
log.Println(ver)
|
||||||
return info, nil
|
return info, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user