增加配置
This commit is contained in:
parent
8ac01cf6e5
commit
f0feeb2f19
|
@ -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)))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue