1
This commit is contained in:
parent
51bc2a913b
commit
073d073797
@ -25,10 +25,10 @@ func (this *chip) List(accountId string) (error, []*model.Chip) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *chip) CalcScore(accountId string) {
|
func (this *chip) CalcScore(accountId string) {
|
||||||
nowTime := f5.GetApp().GetRealSeconds()
|
//nowTime := f5.GetApp().GetRealSeconds()
|
||||||
chips := []*model.Chip{}
|
chips := []*model.Chip{}
|
||||||
result := f5.GetApp().GetOrmDb(constant.WHEEL_DB).Table(new(model.Chip).TableName()).Where(
|
result := f5.GetApp().GetOrmDb(constant.WHEEL_DB).Table(new(model.Chip).TableName()).Where(
|
||||||
"account_id = ? AND expiretime > ?", accountId, nowTime).Find(&chips)
|
"account_id = ? AND expiretime > calc_time", accountId).Find(&chips)
|
||||||
if result.Error == nil {
|
if result.Error == nil {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user