1
This commit is contained in:
@@ -438,7 +438,7 @@ func (a *API) RetailDiscountList(poiCode string, actType int) (actList []*GetSto
|
||||
if len(tmpActList) < limit {
|
||||
break
|
||||
}
|
||||
offset++
|
||||
offset = (offset + 1) * limit
|
||||
} else {
|
||||
return nil, err
|
||||
}
|
||||
@@ -581,11 +581,12 @@ func (a *API) InStoreCouponDelete(poiCode string, actIDList []string) (err error
|
||||
// 查询商家券(店内发券)活动
|
||||
// http://developer.waimai.meituan.com/home/docDetail/314
|
||||
// 页码从1开始
|
||||
func (a *API) InStoreCouponList(poiCode string, pageNum, pageSize int) (couponActList []*CouponActInfo, err error) {
|
||||
func (a *API) InStoreCouponList(poiCode string, actType, pageNum, pageSize int) (couponActList []*CouponActInfo, err error) {
|
||||
result, err := a.AccessAPI("act/instore/coupon/list", false, map[string]interface{}{
|
||||
KeyAppPoiCode: poiCode,
|
||||
"page_num": pageNum,
|
||||
"page_size": pageSize,
|
||||
"type": actType,
|
||||
})
|
||||
if err == nil {
|
||||
err = utils.Map2StructByJson(result, &couponActList, false)
|
||||
|
||||
Reference in New Issue
Block a user