fix
This commit is contained in:
parent
10252aa8fe
commit
b77695305a
|
@ -46,7 +46,6 @@ func (l *GetProductTemplateTagsLogic) GetProductTemplateTags(req *types.GetProdu
|
||||||
var (
|
var (
|
||||||
productTemplateTags []gmodel.FsProductTemplateTags
|
productTemplateTags []gmodel.FsProductTemplateTags
|
||||||
)
|
)
|
||||||
logx.Info("获取模板标签用户信息:", userinfo.UserId, "---", userinfo.GuestId)
|
|
||||||
//获取用户元数据
|
//获取用户元数据
|
||||||
userMaterial, err := l.svcCtx.AllModels.FsUserMaterial.FindLatestOne(l.ctx, userinfo.UserId, userinfo.GuestId)
|
userMaterial, err := l.svcCtx.AllModels.FsUserMaterial.FindLatestOne(l.ctx, userinfo.UserId, userinfo.GuestId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -57,7 +56,6 @@ func (l *GetProductTemplateTagsLogic) GetProductTemplateTags(req *types.GetProdu
|
||||||
// 返回固定模板标签列表
|
// 返回固定模板标签列表
|
||||||
productTemplateTags, err = l.svcCtx.AllModels.FsProductTemplateTags.GetList(l.ctx, 1, req.Limit, 0, 1, "`id` DESC")
|
productTemplateTags, err = l.svcCtx.AllModels.FsProductTemplateTags.GetList(l.ctx, 1, req.Limit, 0, 1, "`id` DESC")
|
||||||
} else {
|
} else {
|
||||||
logx.Info("查询到user_id:", userinfo.UserId, "guest_id:", userinfo.GuestId, "的默认最新上传素材数据:", userMaterial)
|
|
||||||
//元数据是空的
|
//元数据是空的
|
||||||
if userMaterial.Metadata == nil {
|
if userMaterial.Metadata == nil {
|
||||||
// 返回固定模板标签列表
|
// 返回固定模板标签列表
|
||||||
|
|
Loading…
Reference in New Issue
Block a user