添加日志

This commit is contained in:
eson 2023-11-24 12:29:25 +08:00
parent 95b19c4522
commit c9d0ab7e9a

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
}
}