1
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"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
|
||||
func (a *API) OrderStatusAndPsInfo(params map[string]interface{}) (err error) {
|
||||
globals.SugarLogger.Debugf("===param := %s", utils.Format4Output(params, false))
|
||||
delete(params, "opcode")
|
||||
globals.SugarLogger.Debugf("===param2 := %s", utils.Format4Output(params, false))
|
||||
_, err = a.AccessAPI("ecommerce/order/logistics/sync", false, params)
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -110,3 +110,10 @@ func TestOrderStatusAndPsInfo(t *testing.T) {
|
||||
param["courier_phone"] = "19817862055"
|
||||
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