From 37a3d07449925cf37be5ab0fac34c344aba23c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E9=93=AD?= Date: Tue, 16 Jul 2024 13:56:45 +0800 Subject: [PATCH] plugin wx getSrv sync --- plugins/weixin_cpn/internal/transform.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/weixin_cpn/internal/transform.go b/plugins/weixin_cpn/internal/transform.go index 7f75bfa..28a0184 100644 --- a/plugins/weixin_cpn/internal/transform.go +++ b/plugins/weixin_cpn/internal/transform.go @@ -38,15 +38,13 @@ func orderReq(order *proto.OrderRequest_Order, product *proto.OrderRequest_Produ return cashcoupons.SendCouponRequest{}, fmt.Errorf("order extra json unmarshal error: %v", err) } } - c := cashcoupons.SendCouponRequest{ + return cashcoupons.SendCouponRequest{ Openid: core.String(order.Account), StockId: core.String(product.ProductNo), OutRequestNo: core.String(order.OrderNo), Appid: core.String(extra.Appid), StockCreatorMchid: core.String(extra.StockCreatorMchid), - } - - return c, nil + }, nil } func orderResp(order *proto.OrderRequest_Order, tradeNo string) *proto.OrderResponse {