Przeglądaj źródła

add live award patch function

abiao 5 lat temu
rodzic
commit
6a88adab5f

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

@@ -11,6 +11,7 @@ import (
 	"fohow.com/apps/models/user_model"
 	"github.com/astaxie/beego"
 	"strconv"
+	"time"
 )
 
 //
@@ -79,6 +80,7 @@ func (self *RailsadminController) LiveAward() {
 		}
 		order.Address = LiveAward.Address
 		order.TotalPrice = totalPrice
+		order.PaiedAt = time.Now().Unix()
 		order.Status = order_model.STATUS_PROCESSING
 		order.Save()
 	}