diff --git a/app/http/entities/front/Order.go b/app/http/entities/front/Order.go index 343ade5..e6b5a63 100644 --- a/app/http/entities/front/Order.go +++ b/app/http/entities/front/Order.go @@ -33,6 +33,7 @@ type OrderListResponse struct { State int `json:"state"` VoucherLink string `json:"voucher_link"` CreateTime string `json:"create_time"` + NotifyUrl string `json:"notify_url"` } func (p *OrderListResponse) ResponseFromDb(l ordersmodel.OrdersProductsList) { @@ -45,6 +46,7 @@ func (p *OrderListResponse) ResponseFromDb(l ordersmodel.OrdersProductsList) { p.ProductId = l.ProductId p.ProductName = l.ProductName p.State = l.State + p.NotifyUrl = config.GetConf().YouChu.NotifyUrl if l.VoucherLink != "" { p.VoucherLink = string(encrypt.AesDecryptCBC(l.VoucherLink, []byte(config.GetConf().OpenApiMarketConfig.SecretKey))) }