From c6116bf2050f16ed28cb0fd2305a67d2d6534a4c Mon Sep 17 00:00:00 2001 From: "qiyunfanbo126.com" <815699> Date: Wed, 4 Sep 2024 11:52:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=AE=A2=E5=8D=95=E8=BD=AE?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/http/controllers/front/OrderController.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/http/controllers/front/OrderController.go b/app/http/controllers/front/OrderController.go index d0a0922..3f50571 100644 --- a/app/http/controllers/front/OrderController.go +++ b/app/http/controllers/front/OrderController.go @@ -91,7 +91,10 @@ func OrderState(c *gin.Context) { } if has { orderQueryResponse.Id = order.Id - order.VoucherLink = string(encrypt.AesDecryptCBC(order.VoucherLink, []byte(config.GetConf().OpenApiMarketConfig.SecretKey))) + if order.VoucherLink != "" { + order.VoucherLink = string(encrypt.AesDecryptCBC(order.VoucherLink, []byte(config.GetConf().OpenApiMarketConfig.SecretKey))) + } + orderQueryResponse.State = order.State controllers.Success(c, orderQueryResponse, "请求成功") } else {