fix
This commit is contained in:
parent
396ef61206
commit
95fc072b0b
|
@ -13,8 +13,13 @@ func (w *wsConnectItem) sendCombineImageStepResponseMessage(renderId, requestId,
|
||||||
if w.debug == nil {
|
if w.debug == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
combineTakesTime := "cache"
|
combineTakesTime := ""
|
||||||
uploadCombineImageTakesTime := "cache"
|
uploadCombineImageTakesTime := ""
|
||||||
|
//开了缓存
|
||||||
|
if w.debug.IsCache != 0 {
|
||||||
|
combineTakesTime = "cache"
|
||||||
|
uploadCombineImageTakesTime = "cache"
|
||||||
|
}
|
||||||
if debugData != nil && debugData.DiffTimeLogoCombine > 0 {
|
if debugData != nil && debugData.DiffTimeLogoCombine > 0 {
|
||||||
combineTakesTime = fmt.Sprintf("%dms", debugData.DiffTimeLogoCombine)
|
combineTakesTime = fmt.Sprintf("%dms", debugData.DiffTimeLogoCombine)
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,12 +138,10 @@ type (
|
||||||
Debug *auth.Debug `json:"debug"`
|
Debug *auth.Debug `json:"debug"`
|
||||||
}
|
}
|
||||||
LogoCombineRes struct {
|
LogoCombineRes struct {
|
||||||
ResourceId string `json:"resource_id"`
|
ResourceId string `json:"resource_id"`
|
||||||
ResourceUrl *string `json:"resource_url"`
|
ResourceUrl *string `json:"resource_url"`
|
||||||
ResourceCache int64 `json:"resource_cache"`
|
Metadata *string `json:"metadata"`
|
||||||
|
DebugData *auth.DebugData `json:"debug_data"`
|
||||||
Metadata *string `json:"metadata"`
|
|
||||||
DebugData *auth.DebugData `json:"debug_data"`
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
type TemplateTagColor struct {
|
type TemplateTagColor struct {
|
||||||
|
@ -178,9 +176,8 @@ 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