From f5779ba6c1a387e82e0b87e54ca2221f5df42852 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Mon, 30 Oct 2023 15:23:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=B8=8A=E4=BC=A0logo--debug=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/repositories/image_handle.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/repositories/image_handle.go b/service/repositories/image_handle.go index e58a3216..f2a538d9 100644 --- a/service/repositories/image_handle.go +++ b/service/repositories/image_handle.go @@ -156,8 +156,8 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq if logoResourceId == "" { return nil, errors.New("invalid logo url") } - userMaterialModel := gmodel.NewFsUserMaterialModel(l.MysqlConn.Debug()) - resLogoInfo, err := userMaterialModel.FindOneByLogoResourceId(ctx, logoResourceId) + userMaterialModel := gmodel.NewFsResourceModel(l.MysqlConn) + resLogoInfo, err := userMaterialModel.FindOneById(ctx, logoResourceId) if err != nil { logx.Error(err) return nil, fmt.Errorf("logo find fial logoResourceId: %v, err: %v", logoResourceId, err)