From c81696ef3d09c66b942e97ef42b54bb2f1cf0a03 Mon Sep 17 00:00:00 2001 From: shenzhuan Date: Mon, 31 Oct 2022 10:32:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=8E=89=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B4=AD=E7=89=A9=E8=BD=A6=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shoppingCart-service/client/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shoppingCart-service/client/client.go b/shoppingCart-service/client/client.go index de69f9e..3e359c0 100644 --- a/shoppingCart-service/client/client.go +++ b/shoppingCart-service/client/client.go @@ -11,7 +11,6 @@ import ( "github.com/lithammer/shortuuid/v3" "github.com/opentracing/opentracing-go" "go-micro.dev/v4/client" - "go-micro.dev/v4/errors" "go-micro.dev/v4/web" "goproduct/common" "goproduct/proto" @@ -205,7 +204,8 @@ func main() { } resp, err = AddCartClient.AddCart(context.TODO(), req) CartId = resp.ID - err = errors.New("400", "测试异常", 400) + //测试异常 + //err = errors.New("400", "测试异常", 400) if err != nil { log.Println("/addCart err ", err) c.JSON(http.StatusOK, gin.H{"dtm_reslut": "FAILURE", "Message": "新增购物车失败!"})