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 {