Skip to content

Commit

Permalink
优惠券
Browse files Browse the repository at this point in the history
  • Loading branch information
iscod committed Apr 18, 2022
1 parent a78df26 commit 723d681
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dd/commitPay.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (s *DingdongSession) CommitPay() error {
}

if s.Conf.PromotionId != "" {
data.CouponList = append(data.CouponList, CouponInfo{ PromotionId: s.Conf.PromotionId, StoreId: s.FloorInfo.StoreInfo.StoreId })
data.CouponList = append(data.CouponList, CouponInfo{PromotionId: s.Conf.PromotionId, StoreId: s.FloorInfo.StoreInfo.StoreId})
}

dataStr, err := json.Marshal(data)
Expand Down
4 changes: 2 additions & 2 deletions dd/settleDelivery.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ type SettleParam struct {

func (s *DingdongSession) CheckSettleInfo() error {
urlPath := "https://api-sams.walmartmobile.cn/api/v1/sams/trade/settlement/getSettleInfo"

data := SettleParam{
Uid: s.Uid,
AddressId: s.Address.AddressId,
Expand All @@ -115,7 +115,7 @@ func (s *DingdongSession) CheckSettleInfo() error {
GoodsList: s.GoodsList,
}
if s.Conf.PromotionId != "" {
data.CouponList = append(data.CouponList, CouponInfo{ PromotionId: s.Conf.PromotionId, StoreId: s.FloorInfo.StoreInfo.StoreId })
data.CouponList = append(data.CouponList, CouponInfo{PromotionId: s.Conf.PromotionId, StoreId: s.FloorInfo.StoreInfo.StoreId})
}
dataStr, _ := json.Marshal(data)
req := s.NewRequest("POST", urlPath, dataStr)
Expand Down

0 comments on commit 723d681

Please sign in to comment.