fix:上传logo--debug模式

This commit is contained in:
momo 2023-10-30 15:30:31 +08:00
parent f5779ba6c1
commit b1673687a8

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.NewFsResourceModel(l.MysqlConn)
resLogoInfo, err := userMaterialModel.FindOneById(ctx, logoResourceId)
userMaterialModel := gmodel.NewFsUserMaterialModel(l.MysqlConn.Debug())
resLogoInfo, err := userMaterialModel.FindOneByLogoResourceId(ctx, logoResourceId)
if err != nil {
logx.Error(err)
return nil, fmt.Errorf("logo find fial logoResourceId: %v, err: %v", logoResourceId, err)