This commit is contained in:
richboo111
2023-08-31 15:07:32 +08:00
parent da719dcf39
commit 39b2e95c54
2 changed files with 0 additions and 6 deletions

View File

@@ -516,7 +516,6 @@ func SwitchAttr(apiObj *mtwmapi.API, vendorStoreID string, vendorCatID int64, na
}
//根据类目id获取类目属性列表
if attrList, err := apiObj.CategoryAttrList(tempCatID); err == nil && len(attrList) > 0 {
globals.SugarLogger.Debugf("SwitchAttr attrList==================%s", utils.Format4Output(attrList, false))
for _, v := range attrList {
if v.Need == mtwmapi.NeedYes {
attrValue = CommonAttrValue{
@@ -538,13 +537,11 @@ func SwitchAttr(apiObj *mtwmapi.API, vendorStoreID string, vendorCatID int64, na
}}
}
}
globals.SugarLogger.Debugf("1 attrValue==================%s", utils.Format4Output(attrValue, false))
attrValues = append(attrValues, attrValue)
}
}
temp, _ := json.Marshal(attrValues)
attrs = string(temp)
globals.SugarLogger.Debugf("SwitchAttr attrValues=%s", utils.Format4Output(attrValues, false))
} else {
switch vendorCatID { //兜底处理
case 200002727: