fix
This commit is contained in:
parent
a1f87d86e3
commit
b65618bd0c
|
@ -70,27 +70,19 @@ func GetTemplateSwitchInfo(templateId int64, templateJsonStr *string, templateMa
|
|||
Id: templateId,
|
||||
Material: templateMaterialImg,
|
||||
MaterialData: MaterialData{
|
||||
QRcode: QRcode{
|
||||
UserDisabled: true,
|
||||
},
|
||||
Website: Website{
|
||||
UserDisabled: true,
|
||||
},
|
||||
Address: Address{
|
||||
UserDisabled: true,
|
||||
},
|
||||
Phone: Phone{
|
||||
UserDisabled: true,
|
||||
},
|
||||
Slogan: Slogan{
|
||||
UserDisabled: true,
|
||||
},
|
||||
Logo: Logo{
|
||||
Material: "/image/logo/aHnT1_rzubdwax_scale.png",
|
||||
},
|
||||
},
|
||||
CombineIsVisible: false,
|
||||
}
|
||||
defer func() {
|
||||
returnData.MaterialData.QRcode.UserDisabled = true
|
||||
returnData.MaterialData.Website.UserDisabled = true
|
||||
returnData.MaterialData.Address.UserDisabled = true
|
||||
returnData.MaterialData.Phone.UserDisabled = true
|
||||
returnData.MaterialData.Slogan.UserDisabled = true
|
||||
}()
|
||||
if templateJsonStr == nil || *templateJsonStr == "" {
|
||||
return returnData
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user