增加配置

This commit is contained in:
qiyunfanbo126.com 2024-07-10 14:03:09 +08:00
parent 8ac01cf6e5
commit f0feeb2f19
1 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ type OrderListResponse struct {
State int `json:"state"` State int `json:"state"`
VoucherLink string `json:"voucher_link"` VoucherLink string `json:"voucher_link"`
CreateTime string `json:"create_time"` CreateTime string `json:"create_time"`
NotifyUrl string `json:"notify_url"`
} }
func (p *OrderListResponse) ResponseFromDb(l ordersmodel.OrdersProductsList) { func (p *OrderListResponse) ResponseFromDb(l ordersmodel.OrdersProductsList) {
@ -45,6 +46,7 @@ func (p *OrderListResponse) ResponseFromDb(l ordersmodel.OrdersProductsList) {
p.ProductId = l.ProductId p.ProductId = l.ProductId
p.ProductName = l.ProductName p.ProductName = l.ProductName
p.State = l.State p.State = l.State
p.NotifyUrl = config.GetConf().YouChu.NotifyUrl
if l.VoucherLink != "" { if l.VoucherLink != "" {
p.VoucherLink = string(encrypt.AesDecryptCBC(l.VoucherLink, []byte(config.GetConf().OpenApiMarketConfig.SecretKey))) p.VoucherLink = string(encrypt.AesDecryptCBC(l.VoucherLink, []byte(config.GetConf().OpenApiMarketConfig.SecretKey)))
} }