From b087fdd0b896d63f84cea07dd3ff0bd14bf789b3 Mon Sep 17 00:00:00 2001 From: kanade <kanade@kumo.work> Date: Mon, 26 Aug 2024 16:46:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp/shipment.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/erp/shipment.go b/erp/shipment.go index a82fcc8..09082ae 100644 --- a/erp/shipment.go +++ b/erp/shipment.go @@ -114,13 +114,12 @@ type ShipmentAdd struct { } // Add @TITLE 添加 -func (s *shipment) Add(ctx context.Context, args ArgsShipmentAdd) (err error) { +func (s *shipment) Add(ctx context.Context, args ArgsShipmentAdd) (shipmentId int64, err error) { xClient, err := client.GetClient(s) if err != nil { return } - reply := 0 - err = xClient.Call(ctx, "Add", args, &reply) + err = xClient.Call(ctx, "Add", args, &shipmentId) return }