1
This commit is contained in:
parent
ea98c2e536
commit
adf2337fde
@ -29,7 +29,7 @@ type User struct {
|
||||
LastPresentDiceTime int32 `gorm:"column:last_present_dice_time"`
|
||||
CurrGrid int32 `gorm:"column:curr_grid"`
|
||||
AwardGrids string `gorm:"column:award_grids"`
|
||||
AwardGridsList []int32
|
||||
AwardGridsList []int32 `gorm:"-`
|
||||
CreateTime int32 `gorm:"column:createtime;<-:create"`
|
||||
ModifyTime int32 `gorm:"column:modifytime"`
|
||||
}
|
||||
@ -70,9 +70,11 @@ func (this *User) Find(accountId string, nowTime int64) (error, bool) {
|
||||
gridstr := strings.Split(this.AwardGrids, ",")
|
||||
this.AwardGridsList = []int32{}
|
||||
for _, item := range gridstr {
|
||||
if item != "" {
|
||||
this.AwardGridsList = append(this.AwardGridsList, q5.SafeToInt32(item))
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil, result.RowsAffected > 0
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user