新增订单轮询

This commit is contained in:
qiyunfanbo126.com 2024-09-05 15:53:38 +08:00
parent 779b6eb1c0
commit 86a7644554
1 changed files with 2 additions and 0 deletions

View File

@ -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 {