修改各种发单是扣款,品牌扣款和门店扣款,品牌充值门店充值

This commit is contained in:
邹宗楠
2023-05-11 10:56:05 +08:00
parent 28f172133b
commit 381447307d
17 changed files with 108 additions and 48 deletions

View File

@@ -342,11 +342,11 @@ func (a *API) QueryOrderStatus(deliveryId int64, mtPeiSongId string) (retVal map
"delivery_id": deliveryId,
"mt_peisong_id": mtPeiSongId,
}
if result, err := a.AccessAPI("order/status/query", params); err != nil {
result, err := a.AccessAPI("order/status/query", params)
if err != nil {
return nil, err
} else {
return result.Data, nil
}
return result.Data, nil
}
func (a *API) CancelOrder(deliveryId int64, mtPeiSongId string, cancelReasonId int, cancelReason string) (result *OrderResponse, err error) {

View File

@@ -145,3 +145,7 @@ func TestNumber(t *testing.T) {
fmt.Println("5", 4&4 != 0)
fmt.Println("6", 5&4 != 0)
}
func TestQueryOrderStatus(t *testing.T) {
api.QueryOrderStatus(1100536572153699974, "1683539405488098818")
}