fix
This commit is contained in:
@@ -51,12 +51,12 @@ func (l *GetTagProductListLogic) GetTagProductList(req *types.GetTagProductListR
|
||||
Level: 2, //等级是2的
|
||||
}
|
||||
//传入分类id
|
||||
if req.Cid > 0 {
|
||||
if req.BasicTagId > 0 {
|
||||
//获取该类行的levelprefix
|
||||
tagData, err := l.svcCtx.AllModels.FsTags.FindOne(l.ctx, req.Cid)
|
||||
tagData, err := l.svcCtx.AllModels.FsTags.FindOne(l.ctx, req.BasicTagId)
|
||||
if err != nil {
|
||||
if errors.Is(err, gorm.ErrRecordNotFound) {
|
||||
return resp.SetStatusWithMessage(basic.CodeDbRecordNotFoundErr, "param cid is invalid:record not found")
|
||||
return resp.SetStatusWithMessage(basic.CodeDbRecordNotFoundErr, "param BasicTagId is invalid:record not found")
|
||||
}
|
||||
logx.Error(err)
|
||||
return resp.SetStatusWithMessage(basic.CodeDbSqlErr, "failed to get tag info")
|
||||
|
||||
Reference in New Issue
Block a user