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)