This commit is contained in:
laodaming 2023-10-27 11:10:06 +08:00
parent a1f87d86e3
commit b65618bd0c

View File

@ -70,27 +70,19 @@ func GetTemplateSwitchInfo(templateId int64, templateJsonStr *string, templateMa
Id: templateId, Id: templateId,
Material: templateMaterialImg, Material: templateMaterialImg,
MaterialData: MaterialData{ MaterialData: MaterialData{
QRcode: QRcode{
UserDisabled: true,
},
Website: Website{
UserDisabled: true,
},
Address: Address{
UserDisabled: true,
},
Phone: Phone{
UserDisabled: true,
},
Slogan: Slogan{
UserDisabled: true,
},
Logo: Logo{ Logo: Logo{
Material: "/image/logo/aHnT1_rzubdwax_scale.png", Material: "/image/logo/aHnT1_rzubdwax_scale.png",
}, },
}, },
CombineIsVisible: false, 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 == "" { if templateJsonStr == nil || *templateJsonStr == "" {
return returnData return returnData
} }