Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop
This commit is contained in:
commit
bbf7c06bd4
|
@ -116,6 +116,7 @@ func (l *LogoCombineLogic) LogoCombine(req *types.LogoCombineReq, userinfo *auth
|
||||||
},
|
},
|
||||||
ProductTemplateTagGroups: req.TemplateTagGroups,
|
ProductTemplateTagGroups: req.TemplateTagGroups,
|
||||||
ProductTemplateV2Info: productTemplateV2Info,
|
ProductTemplateV2Info: productTemplateV2Info,
|
||||||
|
Debug: userinfo.Debug,
|
||||||
})
|
})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -124,10 +125,8 @@ func (l *LogoCombineLogic) LogoCombine(req *types.LogoCombineReq, userinfo *auth
|
||||||
|
|
||||||
// 返回成功的响应和上传URL
|
// 返回成功的响应和上传URL
|
||||||
return resp.SetStatus(basic.CodeOK, map[string]interface{}{
|
return resp.SetStatus(basic.CodeOK, map[string]interface{}{
|
||||||
"resource_id": res.ResourceId,
|
"resource_id": res.ResourceId,
|
||||||
"resource_url": res.ResourceUrl,
|
"resource_url": res.ResourceUrl,
|
||||||
"resource_metadata": "",
|
"resource_metadata": "",
|
||||||
"diff_time_logo_combine": res.DiffTimeLogoCombine,
|
}).WithDebug(res.DebugData)
|
||||||
"diff_time_upload_file": res.DiffTimeUploadFile,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,12 +131,10 @@ type (
|
||||||
Debug *auth.Debug `json:"debug"`
|
Debug *auth.Debug `json:"debug"`
|
||||||
}
|
}
|
||||||
LogoCombineRes struct {
|
LogoCombineRes struct {
|
||||||
ResourceId string
|
ResourceId string
|
||||||
ResourceUrl *string
|
ResourceUrl *string
|
||||||
Metadata *string
|
Metadata *string
|
||||||
DiffTimeLogoCombine int64
|
DebugData *auth.DebugData `json:"debug_data"`
|
||||||
DiffTimeUploadFile int64
|
|
||||||
DebugData *auth.DebugData `json:"debug_data"`
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
type TemplateTagColor struct {
|
type TemplateTagColor struct {
|
||||||
|
@ -314,9 +312,6 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq
|
||||||
|
|
||||||
resp.ResourceId = uploadRes.ResourceId
|
resp.ResourceId = uploadRes.ResourceId
|
||||||
resp.ResourceUrl = &uploadRes.ResourceUrl
|
resp.ResourceUrl = &uploadRes.ResourceUrl
|
||||||
resp.DiffTimeLogoCombine = diffTimeLogoCombine
|
|
||||||
resp.DiffTimeUploadFile = diffTimeUploadFile
|
|
||||||
|
|
||||||
if in.Debug != nil {
|
if in.Debug != nil {
|
||||||
resp.DebugData = &auth.DebugData{
|
resp.DebugData = &auth.DebugData{
|
||||||
DiffTimeLogoCombine: diffTimeLogoCombine,
|
DiffTimeLogoCombine: diffTimeLogoCombine,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user