新增订单轮询
This commit is contained in:
parent
779b6eb1c0
commit
86a7644554
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue