fix
This commit is contained in:
parent
0c1b15468c
commit
d8686abc34
|
@ -51,6 +51,10 @@ func (l *GetProductTemplateTagsLogic) GetProductTemplateTags(req *types.GetProdu
|
|||
if !userinfo.IsUser() && !userinfo.IsGuest() {
|
||||
// 返回固定模板标签列表
|
||||
productTemplateTags, err = l.svcCtx.AllModels.FsProductTemplateTags.GetList(l.ctx, 1, req.Limit, 0, 1, "`id` DESC")
|
||||
if err != nil {
|
||||
logx.Error(err)
|
||||
return resp.SetStatusWithMessage(basic.CodeDbSqlErr, "failed to get template tags")
|
||||
}
|
||||
} else {
|
||||
//获取用户元数据
|
||||
userMaterial, err := l.svcCtx.AllModels.FsUserMaterial.FindLatestOne(l.ctx, userinfo.UserId, userinfo.GuestId)
|
||||
|
|
Loading…
Reference in New Issue
Block a user