fix
This commit is contained in:
parent
64e7361d50
commit
164c737dd3
@ -245,8 +245,8 @@ func (w *wsConnectItem) sendToOutChan(data []byte) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取需要渲染图片的map key
|
// 获取需要渲染图片的map key
|
||||||
func (w *wsConnectItem) getRenderImageMapKey(productId, templateTagId int64, algorithmVersion string) string {
|
func (w *wsConnectItem) getRenderImageMapKey(productId, templateTagId, logoId int64, algorithmVersion string) string {
|
||||||
return fmt.Sprintf("%d-%d-%s", productId, templateTagId, algorithmVersion)
|
return fmt.Sprintf("%d-%d-%d-%s", productId, templateTagId, logoId, algorithmVersion)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 格式化返回数据
|
// 格式化返回数据
|
||||||
|
@ -54,7 +54,7 @@ func (w *wsConnectItem) SendToCloudRender(data []byte) {
|
|||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
//加入渲染任务
|
//加入渲染任务
|
||||||
key := w.getRenderImageMapKey(productId, renderImageData.TemplateTagId, renderImageData.AlgorithmVersion)
|
key := w.getRenderImageMapKey(productId, renderImageData.TemplateTagId, renderImageData.LogoId, renderImageData.AlgorithmVersion)
|
||||||
w.renderProperty.renderImageTaskCtlChan <- renderImageControlChanItem{
|
w.renderProperty.renderImageTaskCtlChan <- renderImageControlChanItem{
|
||||||
Option: 1, //0删除 1添加
|
Option: 1, //0删除 1添加
|
||||||
Key: key,
|
Key: key,
|
||||||
|
@ -13,6 +13,7 @@ type DataTransferData struct {
|
|||||||
type RenderImageReqMsg struct {
|
type RenderImageReqMsg struct {
|
||||||
ProductIds []int64 `json:"product_ids"` //产品 id
|
ProductIds []int64 `json:"product_ids"` //产品 id
|
||||||
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
|
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
|
||||||
|
LogoId int64 `json:"logo_id"` //logoid
|
||||||
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
|
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -20,6 +21,7 @@ type RenderImageRspMsg struct {
|
|||||||
ProductId int64 `json:"product_id"` //产品 id
|
ProductId int64 `json:"product_id"` //产品 id
|
||||||
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
|
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
|
||||||
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
|
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
|
||||||
|
LogoId int64 `json:"logo_id"` //logoid
|
||||||
Image string `json:"image"` //渲染后的图片
|
Image string `json:"image"` //渲染后的图片
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,6 +39,7 @@ type NotifyInfo struct {
|
|||||||
ProductId int64 `json:"product_id"` //产品id
|
ProductId int64 `json:"product_id"` //产品id
|
||||||
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
|
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
|
||||||
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
|
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
|
||||||
|
LogoId int64 `json:"logo_id"` //logoid
|
||||||
Image string `json:"image"`
|
Image string `json:"image"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,12 +28,14 @@ type DataTransferData {
|
|||||||
type RenderImageReqMsg { //websocket接受要云渲染处理的数据
|
type RenderImageReqMsg { //websocket接受要云渲染处理的数据
|
||||||
ProductIds []int64 `json:"product_ids"` //产品 id
|
ProductIds []int64 `json:"product_ids"` //产品 id
|
||||||
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
|
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
|
||||||
|
LogoId int64 `json:"logo_id"` //logoid
|
||||||
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
|
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
|
||||||
}
|
}
|
||||||
type RenderImageRspMsg { //websocket发送渲染完的数据
|
type RenderImageRspMsg { //websocket发送渲染完的数据
|
||||||
ProductId int64 `json:"product_id"` //产品 id
|
ProductId int64 `json:"product_id"` //产品 id
|
||||||
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
|
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
|
||||||
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
|
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
|
||||||
|
LogoId int64 `json:"logo_id"` //logoid
|
||||||
Image string `json:"image"` //渲染后的图片
|
Image string `json:"image"` //渲染后的图片
|
||||||
}
|
}
|
||||||
type ThirdPartyLoginRspMsg { //websocket三方登录的通知数据
|
type ThirdPartyLoginRspMsg { //websocket三方登录的通知数据
|
||||||
@ -49,6 +51,7 @@ type NotifyInfo {
|
|||||||
ProductId int64 `json:"product_id"` //产品id
|
ProductId int64 `json:"product_id"` //产品id
|
||||||
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
|
TemplateTagId int64 `json:"template_tag_id"` //模板标签id
|
||||||
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
|
AlgorithmVersion string `json:"algorithm_version,optional"` //算法版本
|
||||||
|
LogoId int64 `json:"logo_id"` //logoid
|
||||||
Image string `json:"image"`
|
Image string `json:"image"`
|
||||||
}
|
}
|
||||||
//第三方登录通知接口
|
//第三方登录通知接口
|
||||||
|
Loading…
x
Reference in New Issue
Block a user