+ QueryPromotionSku

This commit is contained in:
gazebo
2019-08-08 22:03:28 +08:00
parent 6840508339
commit c81c9110bb
4 changed files with 83 additions and 46 deletions

View File

@@ -21,3 +21,24 @@ func TestQueryPromotionInfo(t *testing.T) {
}
t.Log(utils.Format4Output(result, false))
}
func TestQueryPromotionSku(t *testing.T) {
skuIDs := []int64{
2023335105,
// 2023335104,
// 2023335088,
// 2023335057,
// 2023335098,
// 2023335020,
}
for _, skuID := range skuIDs {
list, err := api.QueryPromotionSku(PromotionTypeDirectDown, skuID, PromotionStateConfirmed)
t.Log(utils.Format4Output(list, false))
if err != nil {
t.Fatal(err)
}
// for _, v := range list {
// CancelPromotionSkuSingle()
// }
}
}