fix
This commit is contained in:
parent
dbcd2f4559
commit
c123240588
|
@ -139,6 +139,9 @@ func (w *wsConnectItem) consumeRenderImageData() {
|
||||||
|
|
||||||
// 执行渲染任务
|
// 执行渲染任务
|
||||||
func (w *wsConnectItem) renderImage(renderImageData websocket_data.RenderImageReqMsg) {
|
func (w *wsConnectItem) renderImage(renderImageData websocket_data.RenderImageReqMsg) {
|
||||||
|
//用户id赋值
|
||||||
|
renderImageData.RenderData.UserId = w.userId
|
||||||
|
renderImageData.RenderData.GuestId = w.guestId
|
||||||
if renderImageData.RenderData.Logo == "" {
|
if renderImageData.RenderData.Logo == "" {
|
||||||
w.renderErrResponse(renderImageData.RequestId, renderImageData.RenderData.TemplateTag, "", "请传入logo", renderImageData.RenderData.ProductId, w.userId, w.guestId, 0, 0, 0, 0)
|
w.renderErrResponse(renderImageData.RequestId, renderImageData.RenderData.TemplateTag, "", "请传入logo", renderImageData.RenderData.ProductId, w.userId, w.guestId, 0, 0, 0, 0)
|
||||||
return
|
return
|
||||||
|
@ -183,9 +186,6 @@ func (w *wsConnectItem) renderImage(renderImageData websocket_data.RenderImageRe
|
||||||
w.renderErrResponse(renderImageData.RequestId, renderImageData.RenderData.TemplateTag, "", "该产品不可定制", renderImageData.RenderData.ProductId, w.userId, w.guestId, 0, 0, 0, 0)
|
w.renderErrResponse(renderImageData.RequestId, renderImageData.RenderData.TemplateTag, "", "该产品不可定制", renderImageData.RenderData.ProductId, w.userId, w.guestId, 0, 0, 0, 0)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
//用户id赋值
|
|
||||||
renderImageData.RenderData.UserId = w.userId
|
|
||||||
renderImageData.RenderData.GuestId = w.guestId
|
|
||||||
//获取信息
|
//获取信息
|
||||||
productSize, productTemplate, model3dInfo, err := w.getProductRelationInfo(&renderImageData)
|
productSize, productTemplate, model3dInfo, err := w.getProductRelationInfo(&renderImageData)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user