+ebaiapi.ModifyTip4OrderWaybill
This commit is contained in:
@@ -697,15 +697,14 @@ func (a *API) GetShopHealthByDetail(baiduShopID int64) (shopHealthDetail *PageSh
|
|||||||
|
|
||||||
//查询饿百商家中心商户列表
|
//查询饿百商家中心商户列表
|
||||||
// https://be.ele.me/crm/suppliershopstatus?status=1&proxy_business_state=10&pageCount=500&pageNum=1
|
// https://be.ele.me/crm/suppliershopstatus?status=1&proxy_business_state=10&pageCount=500&pageNum=1
|
||||||
func (a *API) GetShopListByPage(status, proxy_business_state, pageCount, pageNum int) (shopList []*ShopList, totalCount int, err error) {
|
func (a *API) GetShopListByPage(status, proxyBusinessState, pageCount, pageNum int) (shopList []*ShopList, totalCount int, err error) {
|
||||||
url := "crm/suppliershopstatus"
|
|
||||||
params := map[string]interface{}{
|
params := map[string]interface{}{
|
||||||
"status": status,
|
"status": status,
|
||||||
"proxy_business_state": proxy_business_state,
|
"proxy_business_state": proxyBusinessState,
|
||||||
"pageCount": pageCount,
|
"pageCount": pageCount,
|
||||||
"pageNum": pageNum,
|
"pageNum": pageNum,
|
||||||
}
|
}
|
||||||
retVal, err := a.AccessStorePage(url, params, false)
|
retVal, err := a.AccessStorePage("crm/suppliershopstatus", params, false)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
utils.Map2StructByJson(retVal["shop_list"], &shopList, true)
|
utils.Map2StructByJson(retVal["shop_list"], &shopList, true)
|
||||||
totalCount = int(utils.MustInterface2Int64(retVal["total"]))
|
totalCount = int(utils.MustInterface2Int64(retVal["total"]))
|
||||||
@@ -714,15 +713,15 @@ func (a *API) GetShopListByPage(status, proxy_business_state, pageCount, pageNum
|
|||||||
}
|
}
|
||||||
|
|
||||||
//饿百骑手增加小费,单位为元,最低0.1元
|
//饿百骑手增加小费,单位为元,最低0.1元
|
||||||
|
// orderID与elemeOrderID任意一个都可以
|
||||||
// https://be.ele.me/crm/modifytip
|
// https://be.ele.me/crm/modifytip
|
||||||
func (a *API) OrderAddTips(order_id, eleme_order_id string, tip, zhongbao_ask_price float64) (err error) {
|
func (a *API) ModifyTip4OrderWaybill(orderID, elemeOrderID string, tip, zhongBaoAskPrice float64) (err error) {
|
||||||
url := "crm/modifytip"
|
|
||||||
params := map[string]interface{}{
|
params := map[string]interface{}{
|
||||||
"order_id": order_id,
|
"order_id": orderID,
|
||||||
"eleme_order_id": eleme_order_id,
|
"eleme_order_id": elemeOrderID,
|
||||||
"tip": tip,
|
"tip": tip,
|
||||||
"zhongbao_ask_price": zhongbao_ask_price,
|
"zhongbao_ask_price": zhongBaoAskPrice,
|
||||||
}
|
}
|
||||||
_, err = a.AccessStorePage(url, params, false)
|
_, err = a.AccessStorePage("crm/modifytip", params, false)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user