From 3d07c9591a406eeeb30cf3dd3ec7705eb2213865 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 19 三月 2024 17:00:32 +0800
Subject: [PATCH] fix

---
 proto/product_inventory/server.go |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/proto/product_inventory/server.go b/proto/product_inventory/server.go
index 70fdaa1..adac6c4 100644
--- a/proto/product_inventory/server.go
+++ b/proto/product_inventory/server.go
@@ -330,6 +330,7 @@
 }
 
 func (s *Server) OrderProductOutput(ctx context.Context, req *OrderProductOutputRequest) (resp *OrderProductOutputResponse, err error) {
+	resp = new(OrderProductOutputResponse)
 	if req.OrderNumber == "" || len(req.Products) == 0 {
 		return nil, errors.New("鍙傛暟缂哄け")
 	}
@@ -456,10 +457,10 @@
 	err = service.AddOutputOperations(outputInfoList)
 
 	if err != nil {
+		logx.Errorf("OrderProductOutput AddOutputOperations err:%v", err)
 		return nil, err
 	}
-
 	resp.Code = 1
 	resp.Msg = "success"
-	return nil, nil
+	return resp, nil
 }

--
Gitblit v1.8.0