This commit is contained in:
laodaming 2023-11-27 15:51:30 +08:00
parent 7cd73a8c96
commit a4aa2c5f07

View File

@ -543,7 +543,9 @@ func (w *wsConnectItem) assembleRenderDataToUnity(taskId string, resolution int,
}
postDataBytes, _ := json.Marshal(postData)
beginPostTime := time.Now().UTC().UnixMilli()
logx.Info("请求unity接口数据", string(postDataBytes))
if w.userId == 127 && info.RenderData.ProductId == 32 {
logx.Info("请求unity接口数据", string(postDataBytes))
}
_, err = curl.ApiCall(url, "POST", header, bytes.NewReader(postDataBytes), time.Second*10)
if err != nil {
w.renderErrResponse(info.RequestId, info.RenderData.TemplateTag, taskId, "请求unity接口失败", info.RenderData.ProductId, w.userId, w.guestId, productTemplate.Id, model3dInfo.Id, productSize.Id, *productTemplate.ElementModelId)