新增订单轮询

This commit is contained in:
qiyunfanbo126.com 2024-09-05 16:20:38 +08:00
parent 86a7644554
commit a9c442e309
1 changed files with 1 additions and 6 deletions

View File

@ -51,12 +51,7 @@ func (p *OrderListResponse) ResponseFromDb(l ordersmodel.OrdersProductsList) {
p.State = l.State
p.NotifyUrl = config.GetConf().YouChu.NotifyUrl
if l.VoucherLink != "" {
if config.GetConf().Debug == false {
p.VoucherLink = string(encrypt.AesDecryptCBC(l.VoucherLink, []byte(config.GetConf().OpenApiMarketConfig.SecretKey)))
} else {
p.VoucherLink = "https://22233.cn"
}
p.VoucherLink = string(encrypt.AesDecryptCBC(l.VoucherLink, []byte(config.GetConf().OpenApiMarketConfig.SecretKey)))
}
p.CreateTime = l.CreateTime.Format("2006-01-02 15:04:05")
return