fix:上传logo--debug模式

This commit is contained in:
momo 2023-10-30 15:23:19 +08:00
parent a0267481df
commit f5779ba6c1

View File

@ -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)