fix
This commit is contained in:
parent
058c6d6391
commit
ebd7c05523
|
@ -349,7 +349,7 @@ func (l *GetProductDetailLogic) GetTemplateTagColor(req *types.GetProductDetailR
|
||||||
//颜色选择置0
|
//颜色选择置0
|
||||||
req.SelectedColorIndex = 0
|
req.SelectedColorIndex = 0
|
||||||
//获取默认profile从中获取logo
|
//获取默认profile从中获取logo
|
||||||
profile, err := l.svcCtx.AllModels.FsUserInfo.GetProfileByUserIdGuestId(l.ctx, "logo_selected", 0, 0)
|
profile, err := l.svcCtx.AllModels.FsUserInfo.GetProfile(l.ctx, "logo_selected", 0, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if errors.Is(err, gorm.ErrRecordNotFound) {
|
if errors.Is(err, gorm.ErrRecordNotFound) {
|
||||||
return types.TemplateTagColorInfo{}, errors.New("the default profile info is not exists")
|
return types.TemplateTagColorInfo{}, errors.New("the default profile info is not exists")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user