11
This commit is contained in:
@@ -62,7 +62,15 @@ type MaterialItem struct {
|
||||
// 获取模板开关信息(目前写死,以后后台做好了功能再更新变动)
|
||||
func GetTemplateSwitchInfo(templateId int64, templateJsonStr *string, templateMaterialImg string) (resp GetTemplateSwitchInfoRsp, err error) {
|
||||
if templateJsonStr == nil || *templateJsonStr == "" {
|
||||
return GetTemplateSwitchInfoRsp{}, nil
|
||||
return GetTemplateSwitchInfoRsp{
|
||||
Id: templateId,
|
||||
Material: templateMaterialImg,
|
||||
MaterialData: MaterialData{
|
||||
Logo: Logo{
|
||||
Material: "/image/logo/aHnT1_rzubdwax_scale.png",
|
||||
},
|
||||
},
|
||||
}, nil
|
||||
}
|
||||
var templateJsonInfo TemplateSimpleParseInfo
|
||||
if err = json.Unmarshal([]byte(*templateJsonStr), &templateJsonInfo); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user