1
This commit is contained in:
@@ -498,6 +498,7 @@ func SwitchAttr(apiObj *mtwmapi.API, vendorStoreID string, vendorCatID int64, na
|
|||||||
db *dao.DaoDB
|
db *dao.DaoDB
|
||||||
tempCatID int64
|
tempCatID int64
|
||||||
attrValue CommonAttrValue
|
attrValue CommonAttrValue
|
||||||
|
attrValues []CommonAttrValue
|
||||||
)
|
)
|
||||||
//if nameID != 0 { //是否为纯创建
|
//if nameID != 0 { //是否为纯创建
|
||||||
// if tData, err := dao.GetSkuNames(db, []int{nameID}, nil, "", false); err == nil && len(tData) > 0 {
|
// if tData, err := dao.GetSkuNames(db, []int{nameID}, nil, "", false); err == nil && len(tData) > 0 {
|
||||||
@@ -538,9 +539,9 @@ func SwitchAttr(apiObj *mtwmapi.API, vendorStoreID string, vendorCatID int64, na
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
globals.SugarLogger.Debugf("1 attrValue==================%s", utils.Format4Output(attrValue, false))
|
||||||
var attrValues []CommonAttrValue
|
|
||||||
attrValues = append(attrValues, attrValue)
|
attrValues = append(attrValues, attrValue)
|
||||||
|
}
|
||||||
temp, _ := json.Marshal(attrValues)
|
temp, _ := json.Marshal(attrValues)
|
||||||
attrs = string(temp)
|
attrs = string(temp)
|
||||||
globals.SugarLogger.Debugf("SwitchAttr attrValues=%s", utils.Format4Output(attrValues, false))
|
globals.SugarLogger.Debugf("SwitchAttr attrValues=%s", utils.Format4Output(attrValues, false))
|
||||||
|
|||||||
Reference in New Issue
Block a user