diff --git a/app/http/controllers/front/OrderController.go b/app/http/controllers/front/OrderController.go index 3f50571..ced8565 100644 --- a/app/http/controllers/front/OrderController.go +++ b/app/http/controllers/front/OrderController.go @@ -88,6 +88,7 @@ func OrderState(c *gin.Context) { if err != nil { controllers.Error(c, 500, "订单查询失败") return + } if has { orderQueryResponse.Id = order.Id @@ -95,6 +96,7 @@ func OrderState(c *gin.Context) { order.VoucherLink = string(encrypt.AesDecryptCBC(order.VoucherLink, []byte(config.GetConf().OpenApiMarketConfig.SecretKey))) } + orderQueryResponse.VoucherLink = order.VoucherLink orderQueryResponse.State = order.State controllers.Success(c, orderQueryResponse, "请求成功") } else {