1
This commit is contained in:
@@ -28,11 +28,19 @@ func (a *API) AddStoreSku(param *request.AlibabaWdkSkuAddRequest) (*[]VegetableR
|
||||
|
||||
var foodList = make([]VegetableResultList, 0, len(*data.Result.Models))
|
||||
for _, v := range *data.Result.Models {
|
||||
foodList = append(foodList, VegetableResultList{
|
||||
ProductID: *v.ProductId,
|
||||
SkuID: *v.Model,
|
||||
ErrMsg: *v.ErrMsg,
|
||||
})
|
||||
if *v.Success {
|
||||
foodList = append(foodList, VegetableResultList{
|
||||
ProductID: *v.ProductId,
|
||||
SkuID: *v.Model,
|
||||
})
|
||||
} else {
|
||||
foodList = append(foodList, VegetableResultList{
|
||||
ProductID: "",
|
||||
SkuID: *v.Model,
|
||||
ErrMsg: *v.ErrMsg,
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return &foodList, nil
|
||||
|
||||
Reference in New Issue
Block a user