增加配置

This commit is contained in:
qiyunfanbo126.com 2024-07-10 14:25:40 +08:00
parent f0feeb2f19
commit 56effeba55
1 changed files with 2 additions and 2 deletions

View File

@ -40,8 +40,8 @@ func (this *MilkVoucherList) ResponseFromDb(in productsmodel.MilkProductsList) {
this.VoucherTitle = in.Name this.VoucherTitle = in.Name
this.VoucherUrl = config.GetConf().YouChu.VoucherUrl + "?product_id=" + in.Id this.VoucherUrl = config.GetConf().YouChu.VoucherUrl + "?product_id=" + in.Id
this.VoucherIcon = in.MainImage this.VoucherIcon = in.MainImage
this.VoucherAmount = in.ShowPrice this.VoucherAmount = in.Price
this.VoucherOriginalPrice = in.Price this.VoucherOriginalPrice = in.ShowPrice
stock, _ := strconv.Atoi(in.Stock) stock, _ := strconv.Atoi(in.Stock)
if stock > 0 { if stock > 0 {
this.VoucherStatus = "1" this.VoucherStatus = "1"