fix:图片裁剪

This commit is contained in:
Hiven 2023-08-18 19:15:34 +08:00
parent e11d777f18
commit eb2012c5d1

View File

@ -94,6 +94,10 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq
hashKeyData.LogoUrl = *userMaterialInfo.ResourceUrl hashKeyData.LogoUrl = *userMaterialInfo.ResourceUrl
var resourceId string = hash.JsonHashKey(hashKeyData) var resourceId string = hash.JsonHashKey(hashKeyData)
fmt.Println("hashKeyData:", hashKeyData)
fmt.Println("resourceId:", resourceId)
resourceModel := gmodel.NewFsResourceModel(l.MysqlConn) resourceModel := gmodel.NewFsResourceModel(l.MysqlConn)
resourceInfo, err := resourceModel.FindOneById(ctx, resourceId) resourceInfo, err := resourceModel.FindOneById(ctx, resourceId)
if err == nil && resourceInfo.ResourceId != "" { if err == nil && resourceInfo.ResourceId != "" {