11
This commit is contained in:
parent
30fd11bb37
commit
7bebadc517
|
@ -82,7 +82,7 @@ func (w *wsConnectItem) renderImage(data []byte) {
|
|||
w.renderErrResponse(renderImageData.RenderId, renderImageData.RenderData.TemplateTag, "", "请传入logo", renderImageData.RenderData.ProductId, w.userId, w.guestId, 0, 0, 0, 0)
|
||||
return
|
||||
}
|
||||
lenColor := len(renderImageData.RenderData.TemplateTagColor.Color)
|
||||
lenColor := len(renderImageData.RenderData.TemplateTagColor.Colors)
|
||||
if lenColor == 0 {
|
||||
w.renderErrResponse(renderImageData.RenderId, renderImageData.RenderData.TemplateTag, "", "请传入模板标签选择的颜色", renderImageData.RenderData.ProductId, w.userId, w.guestId, 0, 0, 0, 0)
|
||||
return
|
||||
|
@ -161,7 +161,7 @@ func (w *wsConnectItem) renderImage(data []byte) {
|
|||
Qrcode: renderImageData.RenderData.Qrcode,
|
||||
LogoUrl: renderImageData.RenderData.Logo,
|
||||
TemplateTagColor: repositories.TemplateTagColor{
|
||||
Color: renderImageData.RenderData.TemplateTagColor.Color,
|
||||
Color: renderImageData.RenderData.TemplateTagColor.Colors,
|
||||
Index: renderImageData.RenderData.TemplateTagColor.SelectedColorIndex,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ type RenderData struct {
|
|||
GuestId int64 `json:"guest_id"` //游客id(websocket连接建立再赋值)
|
||||
}
|
||||
type TemplateTagColor struct {
|
||||
Color [][]string `json:"color"` //颜色组合
|
||||
Colors [][]string `json:"colors"` //颜色组合
|
||||
SelectedColorIndex int `json:"selected_color_index"` //主色的下标索引
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user