Browse Source

fix:bug

dev
Tooooommy 4 years ago
parent
commit
3d8666436b
  1. 7
      controllers/client/good.go

7
controllers/client/good.go

@ -108,8 +108,8 @@ func (t *GoodCtl) ListOrder() {
return
}
orders, err := models.GetCustomerOrdersByActivityId(uid, activity.Id, activity.RehearsalId,
areaId, statusList, t.Page, t.PageSize, activity.ArchId)
// todo: 直播没有彩排, 所以activity.rehearsal_id
orders, err := models.GetCustomerOrdersByActivityId(uid, activity.Id, 0, areaId, statusList, t.Page, t.PageSize, activity.ArchId)
t.CheckErr(err)
orderIds := make([]int, 0)
for _, order := range orders {
@ -239,13 +239,14 @@ func (t *GoodCtl) Order() {
t.CheckErr(err)
}
// todo: 直播没有彩排
order := models.CustomerOrder{
OrderNo: fmt.Sprint(define.DefaultOrderNo + int(count)),
ActivityId: activity.Id,
ArchId: activity.ArchId,
AreaId: area.Id,
AreaName: area.Name,
RehearsalId: activity.RehearsalId,
// RehearsalId: activity.RehearsalId,
BuyerId: user.Id,
TotalAmount: float64(price)/100 + option.PostFee,
PayAmount: float64(price)/100 + option.PostFee,

Loading…
Cancel
Save