fix
zhangqian
2023-08-09 cbd99e9824b6582296c28e8d86877084c71d8764
api/v1/product.go
@@ -92,7 +92,7 @@
   productId := c.Query("productNumber")
   cli := product.NewProductServiceClient(productServiceConn)
   getProductInfoResponse, err := cli.GetProductInfo(ctx.GetCtx(), &product.GetProductInfoRequest{ProductId: productId}, nil)
   getProductInfoResponse, err := cli.GetProductInfo(ctx.GetCtx(), &product.GetProductInfoRequest{ProductId: productId})
   if err != nil {
      logx.Errorf("GetProductInfo err: %v", err.Error())
      ctx.FailWithMsg(ecode.UnknownErr, "内部错误")
@@ -103,7 +103,5 @@
      ctx.FailWithMsg(ecode.UnknownErr, "内部错误")
      return
   }
   ctx.OkWithDetailed(contextx.Response{
      Data: getProductInfoResponse.Data,
   })
   ctx.OkWithDetailed(getProductInfoResponse.Data)
}