fix
This commit is contained in:
@@ -245,8 +245,8 @@ func (w *wsConnectItem) sendToOutChan(data []byte) {
|
||||
}
|
||||
|
||||
// 获取需要渲染图片的map key
|
||||
func (w *wsConnectItem) getRenderImageMapKey(productId, templateTagId int64, algorithmVersion string) string {
|
||||
return fmt.Sprintf("%d-%d-%s", productId, templateTagId, algorithmVersion)
|
||||
func (w *wsConnectItem) getRenderImageMapKey(productId, templateTagId, logoId int64, algorithmVersion string) string {
|
||||
return fmt.Sprintf("%d-%d-%d-%s", productId, templateTagId, logoId, algorithmVersion)
|
||||
}
|
||||
|
||||
// 格式化返回数据
|
||||
|
||||
@@ -54,7 +54,7 @@ func (w *wsConnectItem) SendToCloudRender(data []byte) {
|
||||
return
|
||||
default:
|
||||
//加入渲染任务
|
||||
key := w.getRenderImageMapKey(productId, renderImageData.TemplateTagId, renderImageData.AlgorithmVersion)
|
||||
key := w.getRenderImageMapKey(productId, renderImageData.TemplateTagId, renderImageData.LogoId, renderImageData.AlgorithmVersion)
|
||||
w.renderProperty.renderImageTaskCtlChan <- renderImageControlChanItem{
|
||||
Option: 1, //0删除 1添加
|
||||
Key: key,
|
||||
|
||||
Reference in New Issue
Block a user