fix jdapi.QueryPromotionSku

This commit is contained in:
gazebo
2020-01-13 14:30:21 +08:00
parent 91675d8392
commit 2245908e18

View File

@@ -116,7 +116,7 @@ func (a *API) QueryPromotionSku(promotionType int, skuID int64, promotionState i
"promotionState": promotionState,
}
result, _, err := a.AccessAPIHavePage("singlePromote/queryPromotionSku", jdParams, nil, nil, genNormalHavePageResultParser("data"))
if err != nil {
if err == nil {
err = JdMap2StructByJson(result, &skuResultList, false)
}
return skuResultList, err