mirror of http://gitlab.batiao8.com/yic/film.git
notify2
This commit is contained in:
parent
2871ef693c
commit
c4aa2c79e8
|
@ -106,11 +106,13 @@ func (d *Dadi) NewOrder(order *model.Order) {
|
||||||
message = append(message, fmt.Sprintf("城市:%s", order.CityName))
|
message = append(message, fmt.Sprintf("城市:%s", order.CityName))
|
||||||
message = append(message, fmt.Sprintf("影院:%s", order.CinemaName))
|
message = append(message, fmt.Sprintf("影院:%s", order.CinemaName))
|
||||||
message = append(message, fmt.Sprintf("影厅:%s", order.Ting))
|
message = append(message, fmt.Sprintf("影厅:%s", order.Ting))
|
||||||
|
message = append(message, fmt.Sprintf("影片:%s", order.MovieName))
|
||||||
message = append(message, fmt.Sprintf("座位:%s,%s,%s", order.Seats,
|
message = append(message, fmt.Sprintf("座位:%s,%s,%s", order.Seats,
|
||||||
goutil.If(order.IsSeat == 3, "可以调座", "不可调座"),
|
goutil.If(order.IsSeat == 3, "可以调座", "不可调座"),
|
||||||
goutil.If(order.LoverSeat == 1, "情侣座", "普通座")))
|
goutil.If(order.LoverSeat == 1, "情侣座", "普通座")))
|
||||||
message = append(message, fmt.Sprintf("订单编号:%s", order.OrderId))
|
message = append(message, fmt.Sprintf("订单编号:%s", order.OrderId))
|
||||||
message = append(message, fmt.Sprintf("订单金额:%.2f", float64(order.TotalPrice)/100))
|
message = append(message, fmt.Sprintf("订单金额:%.2f", float64(order.TotalPrice)/100))
|
||||||
|
message = append(message, fmt.Sprintf("原价:%.2f", float64(order.MaoyanPrice)/100))
|
||||||
message = append(message, fmt.Sprintf("报价范围:%.2f~%.2f", float64(order.MinPrice)/100, float64(order.MaxPrice)/100))
|
message = append(message, fmt.Sprintf("报价范围:%.2f~%.2f", float64(order.MinPrice)/100, float64(order.MaxPrice)/100))
|
||||||
message = append(message, fmt.Sprintf("订单时间:%s", time.Unix(order.PayTime, 0).Format("2006-01-02 15:04")))
|
message = append(message, fmt.Sprintf("订单时间:%s", time.Unix(order.PayTime, 0).Format("2006-01-02 15:04")))
|
||||||
message = append(message, fmt.Sprintf("放映时间:%s", time.Unix(order.ShowTime, 0).Format("2006-01-02 15:04")))
|
message = append(message, fmt.Sprintf("放映时间:%s", time.Unix(order.ShowTime, 0).Format("2006-01-02 15:04")))
|
||||||
|
|
Loading…
Reference in New Issue