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