添加日志
This commit is contained in:
parent
95b19c4522
commit
c9d0ab7e9a
|
@ -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