修改各种发单是扣款,品牌扣款和门店扣款,品牌充值门店充值
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user