feat:合图调整返回
This commit is contained in:
parent
441faaa104
commit
132312ea06
|
@ -138,10 +138,12 @@ type (
|
||||||
Debug *auth.Debug `json:"debug"`
|
Debug *auth.Debug `json:"debug"`
|
||||||
}
|
}
|
||||||
LogoCombineRes struct {
|
LogoCombineRes struct {
|
||||||
ResourceId string
|
ResourceId string `json:"resource_id"`
|
||||||
ResourceUrl *string
|
ResourceUrl *string `json:"resource_url"`
|
||||||
Metadata *string
|
ResourceCache int64 `json:"resource_cache"`
|
||||||
DebugData *auth.DebugData `json:"debug_data"`
|
|
||||||
|
Metadata *string `json:"metadata"`
|
||||||
|
DebugData *auth.DebugData `json:"debug_data"`
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
type TemplateTagColor struct {
|
type TemplateTagColor struct {
|
||||||
|
@ -176,8 +178,9 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq
|
||||||
if err == nil && resourceInfo.ResourceId != "" {
|
if err == nil && resourceInfo.ResourceId != "" {
|
||||||
if in.Debug == nil || (in.Debug != nil && in.Debug.IsCache == 1) {
|
if in.Debug == nil || (in.Debug != nil && in.Debug.IsCache == 1) {
|
||||||
return &LogoCombineRes{
|
return &LogoCombineRes{
|
||||||
ResourceId: resourceId,
|
ResourceId: resourceId,
|
||||||
ResourceUrl: resourceInfo.ResourceUrl,
|
ResourceUrl: resourceInfo.ResourceUrl,
|
||||||
|
ResourceCache: 1,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user