feat:合图调整返回
This commit is contained in:
parent
441faaa104
commit
132312ea06
|
@ -138,10 +138,12 @@ type (
|
|||
Debug *auth.Debug `json:"debug"`
|
||||
}
|
||||
LogoCombineRes struct {
|
||||
ResourceId string
|
||||
ResourceUrl *string
|
||||
Metadata *string
|
||||
DebugData *auth.DebugData `json:"debug_data"`
|
||||
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"`
|
||||
}
|
||||
)
|
||||
type TemplateTagColor struct {
|
||||
|
@ -176,8 +178,9 @@ 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,
|
||||
ResourceId: resourceId,
|
||||
ResourceUrl: resourceInfo.ResourceUrl,
|
||||
ResourceCache: 1,
|
||||
}, nil
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user