fix
This commit is contained in:
@@ -16,6 +16,7 @@ type MaterialData struct {
|
||||
Website Website `json:"Website"`
|
||||
Address Address `json:"Address"`
|
||||
Phone Phone `json:"Phone"`
|
||||
Slogan Slogan `json:"slogan"`
|
||||
Logo Logo `json:"Logo"`
|
||||
}
|
||||
type QRcode struct {
|
||||
@@ -33,6 +34,11 @@ type Address struct {
|
||||
Text string `json:"text"`
|
||||
DefaultValue string `json:"default_value"`
|
||||
}
|
||||
type Slogan struct {
|
||||
IfShow bool `json:"if_show"`
|
||||
Text string `json:"text"`
|
||||
DefaultValue string `json:"default_value"`
|
||||
}
|
||||
type Phone struct {
|
||||
IfShow bool `json:"if_show"`
|
||||
Text string `json:"text"`
|
||||
@@ -87,7 +93,7 @@ func GetTemplateSwitchInfo(templateId int64, templateJsonStr *string, templateMa
|
||||
mapSwitchInfo.MaterialData.Phone = Phone{
|
||||
IfShow: v.Visible,
|
||||
Text: v.Text,
|
||||
DefaultValue: "xxx xxx xxx xxxx",
|
||||
DefaultValue: "000 xxx xxx 1111",
|
||||
}
|
||||
case "Address": //地址
|
||||
mapSwitchInfo.MaterialData.Address = Address{
|
||||
@@ -105,7 +111,13 @@ func GetTemplateSwitchInfo(templateId int64, templateJsonStr *string, templateMa
|
||||
mapSwitchInfo.MaterialData.QRcode = QRcode{
|
||||
IfShow: v.Visible,
|
||||
Text: v.Text,
|
||||
DefaultValue: "xxxxxxx",
|
||||
DefaultValue: "qrcode xxxxxxx",
|
||||
}
|
||||
case "Slogan":
|
||||
mapSwitchInfo.MaterialData.Slogan = Slogan{
|
||||
IfShow: v.Visible,
|
||||
Text: v.Text,
|
||||
DefaultValue: "slogan xxxxxxx",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user