1
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -696,7 +697,9 @@ func (a *API) OrderUpdateTip(orderID int64, tipAmount float64) (err error) {
|
|||||||
// 美团外卖自配送商家同步发货状态和配送信息(推荐)
|
// 美团外卖自配送商家同步发货状态和配送信息(推荐)
|
||||||
// https://waimaiopen.meituan.com/api/v1/ecommerce/order/logistics/sync
|
// https://waimaiopen.meituan.com/api/v1/ecommerce/order/logistics/sync
|
||||||
func (a *API) OrderStatusAndPsInfo(params map[string]interface{}) (err error) {
|
func (a *API) OrderStatusAndPsInfo(params map[string]interface{}) (err error) {
|
||||||
|
globals.SugarLogger.Debugf("===param := %s", utils.Format4Output(params, false))
|
||||||
delete(params, "opcode")
|
delete(params, "opcode")
|
||||||
|
globals.SugarLogger.Debugf("===param2 := %s", utils.Format4Output(params, false))
|
||||||
_, err = a.AccessAPI("ecommerce/order/logistics/sync", false, params)
|
_, err = a.AccessAPI("ecommerce/order/logistics/sync", false, params)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,3 +110,10 @@ func TestOrderStatusAndPsInfo(t *testing.T) {
|
|||||||
param["courier_phone"] = "19817862055"
|
param["courier_phone"] = "19817862055"
|
||||||
a.OrderStatusAndPsInfo(param)
|
a.OrderStatusAndPsInfo(param)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestMap(t *testing.T) {
|
||||||
|
data := map[string]string{"1": "1", "2": "2"}
|
||||||
|
fmt.Println(data)
|
||||||
|
delete(data, "1")
|
||||||
|
fmt.Println(data)
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user