diff --git a/dd/commitPay.go b/dd/commitPay.go index 3ca128c..5edcc60 100644 --- a/dd/commitPay.go +++ b/dd/commitPay.go @@ -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) diff --git a/dd/settleDelivery.go b/dd/settleDelivery.go index a1e9c5a..de6e53c 100644 --- a/dd/settleDelivery.go +++ b/dd/settleDelivery.go @@ -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, @@ -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)