This commit is contained in:
laodaming
2023-10-20 14:36:16 +08:00
parent 396ef61206
commit 95fc072b0b
2 changed files with 13 additions and 11 deletions

View File

@@ -138,12 +138,10 @@ type (
Debug *auth.Debug `json:"debug"`
}
LogoCombineRes struct {
ResourceId string `json:"resource_id"`
ResourceUrl *string `json:"resource_url"`
ResourceCache int64 `json:"resource_cache"`
Metadata *string `json:"metadata"`
DebugData *auth.DebugData `json:"debug_data"`
ResourceId string `json:"resource_id"`
ResourceUrl *string `json:"resource_url"`
Metadata *string `json:"metadata"`
DebugData *auth.DebugData `json:"debug_data"`
}
)
type TemplateTagColor struct {
@@ -178,9 +176,8 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq
if err == nil && resourceInfo.ResourceId != "" {
if in.Debug == nil || (in.Debug != nil && in.Debug.IsCache == 1) {
return &LogoCombineRes{
ResourceId: resourceId,
ResourceUrl: resourceInfo.ResourceUrl,
ResourceCache: 1,
ResourceId: resourceId,
ResourceUrl: resourceInfo.ResourceUrl,
}, nil
}
} else {