- createPromotionSku中把data中的数据当成错误信息处理的

This commit is contained in:
gazebo
2019-05-15 08:53:33 +08:00
parent a574019688
commit a42516c76e

View File

@@ -150,8 +150,9 @@ func (a *API) createPromotionSku(promotionType int, infoId int64, outInfoId stri
} else {
jdParams[KeyOutInfoId] = outInfoId
}
result, err := a.AccessAPINoPage(getPromotionCmd("createPromotionSku", promotionType), jdParams, nil, nil, genNoPageResultParser("errorCode", "errorInfos", "data", "0"))
if err == nil {
// todo 当前是在出错时把data中的数据当成错误信息处理的
result, err := a.AccessAPINoPage(getPromotionCmd("createPromotionSku", promotionType), jdParams, nil, nil, genNoPageResultParser("errorCode", "data", "", "0"))
if err == nil && result != nil {
err = utils.Map2StructByJson(result, &skusResult, false)
}
return skusResult, err