diff --git a/wholesale/order.go b/wholesale/order.go index 9146ffa..e0e8a54 100644 --- a/wholesale/order.go +++ b/wholesale/order.go @@ -51,12 +51,11 @@ type OrderFreightFee struct { } // FreightFee @Title 运费处理 -func (o *order) FreightFee(ctx context.Context, args ArgsOrderFreightFee) { +func (o *order) FreightFee(ctx context.Context, args ArgsOrderFreightFee) (err error) { xClient, err := client.GetClient(o) if err != nil { return } reply := 0 - err = xClient.Call(ctx, "FreightFee", args, &reply) - return + return xClient.Call(ctx, "FreightFee", args, &reply) }