瀏覽代碼

add live award patch function

abiao 5 年之前
父節點
當前提交
00b76450fc

+ 2 - 0
go/gopath/src/fohow.com/apps/controllers/railsadmin_controller/live_award_controller.go

@@ -79,6 +79,8 @@ func (self *RailsadminController) LiveAward() {
 			}
 		}
 		order.Address = LiveAward.Address
+		order.Tel = LiveAward.Tel
+		order.Contact = LiveAward.Contact
 		order.TotalPrice = totalPrice
 		order.PaiedAt = time.Now().Unix()
 		order.Status = order_model.STATUS_PROCESSING

+ 2 - 0
go/gopath/src/fohow.com/apps/models/live_model/live_award.go

@@ -25,6 +25,8 @@ type LiveAward struct {
 	Prod3     int64     `orm:"column(prod3)"                           json:"-"`  // int(11)
 	Nums3     int64     `orm:"column(nums3)"                           json:"-"`  // int(11)
 	Address   string    `orm:"column(address)"                         json:"-"`  // varchar(64)
+	Tel       string    `orm:"column(tel)"                             json:"-"`  // varchar(64)
+	Contact   string    `orm:"column(contact)"                         json:"-"`  // varchar(64)
 	Status    bool      `orm:"column(status)"                          json:"-"`
 	Cash      int64     `orm:"column(cash)"                            json:"cash"`          // int(11)
 	Cent      int64     `orm:"column(cent)"                            json:"cent"`          // int(11)