This commit is contained in:
laodaming 2023-08-29 16:24:59 +08:00
parent 5d32139e09
commit 20ebe02e4e
2 changed files with 11 additions and 2 deletions

View File

@ -191,6 +191,10 @@ func (w *wsConnectItem) consumeRenderCache(data []byte) {
w.sendToOutChan(w.respondDataFormat(constants.WEBSOCKET_COMBINE_IMAGE, websocket_data.CombineImageRspMsg{
RenderId: renderImageData.RenderId,
CombineImage: combineImage,
CombineProcessTime: websocket_data.CombineProcessTime{
CombineTakesTime: fmt.Sprintf("%dms", res.DiffTimeLogoCombine),
UploadCombineImageTakesTime: fmt.Sprintf("%dms", res.DiffTimeUploadFile),
},
}))
//如果是传入了指定尺寸则不走unity
if renderImageData.RenderData.SizeId > 0 {

View File

@ -41,6 +41,11 @@ type RenderProcessTime struct {
// 合图返回数据
type CombineImageRspMsg struct {
RenderId string `json:"render_id"` //渲染id
CombineImage string `json:"combine_image"` //刀版图
RenderId string `json:"render_id"` //渲染id
CombineImage string `json:"combine_image"` //刀版图
CombineProcessTime CombineProcessTime `json:"combine_process_time"`
}
type CombineProcessTime struct {
CombineTakesTime string `json:"combine_takes_time"` //合图时间
UploadCombineImageTakesTime string `json:"upload_combine_image_takes_time"` //上传刀版图耗时
}