增加配置
This commit is contained in:
parent
f0feeb2f19
commit
56effeba55
|
@ -40,8 +40,8 @@ func (this *MilkVoucherList) ResponseFromDb(in productsmodel.MilkProductsList) {
|
|||
this.VoucherTitle = in.Name
|
||||
this.VoucherUrl = config.GetConf().YouChu.VoucherUrl + "?product_id=" + in.Id
|
||||
this.VoucherIcon = in.MainImage
|
||||
this.VoucherAmount = in.ShowPrice
|
||||
this.VoucherOriginalPrice = in.Price
|
||||
this.VoucherAmount = in.Price
|
||||
this.VoucherOriginalPrice = in.ShowPrice
|
||||
stock, _ := strconv.Atoi(in.Stock)
|
||||
if stock > 0 {
|
||||
this.VoucherStatus = "1"
|
||||
|
|
Loading…
Reference in New Issue