饿百骑手小费
This commit is contained in:
@@ -712,3 +712,17 @@ func (a *API) GetShopListByPage(status, proxy_business_state, pageCount, pageNum
|
||||
}
|
||||
return shopList, totalCount, err
|
||||
}
|
||||
|
||||
//饿百骑手增加小费,单位为元,最低0.1元
|
||||
// https://be.ele.me/crm/modifytip
|
||||
func (a *API) OrderAddTips(order_id, eleme_order_id string, tip, zhongbao_ask_price float64) (err error) {
|
||||
url := "crm/modifytip"
|
||||
params := map[string]interface{}{
|
||||
"order_id": order_id,
|
||||
"eleme_order_id": eleme_order_id,
|
||||
"tip": tip,
|
||||
"zhongbao_ask_price": zhongbao_ask_price,
|
||||
}
|
||||
_, err = a.AccessStorePage(url, params, false)
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -21,8 +21,15 @@ func TestGetRealMobileNumber4Order(t *testing.T) {
|
||||
baseapi.SugarLogger.Debug(mobile)
|
||||
}
|
||||
|
||||
func TestOrderAddTips(t *testing.T) {
|
||||
err := api.OrderAddTips("1577329467196263592", "1577329467196263592", 0.1, 0)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestGetStoreOrderInfo(t *testing.T) {
|
||||
orderId := "15501080494587"
|
||||
orderId := "1577329467196263592"
|
||||
// desiredMobile := "18483673654"
|
||||
orderInfo, err := api.GetStoreOrderInfo(orderId)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user