1
This commit is contained in:
parent
c65346af31
commit
8f5d2e5a8f
@ -84,6 +84,7 @@ func (this *ShopApi) Buy(c *gin.Context) {
|
|||||||
chip.AccountId = s.GetAccountId()
|
chip.AccountId = s.GetAccountId()
|
||||||
chip.ItemId = itemMeta.GetId()
|
chip.ItemId = itemMeta.GetId()
|
||||||
chip.ItemNum = 1
|
chip.ItemNum = 1
|
||||||
|
chip.ExpireTime = int32(nowTime)
|
||||||
chip.CreateTime = int32(nowTime)
|
chip.CreateTime = int32(nowTime)
|
||||||
chip.ModifyTime = int32(nowTime)
|
chip.ModifyTime = int32(nowTime)
|
||||||
if chip.Create() != nil {
|
if chip.Create() != nil {
|
||||||
|
@ -10,6 +10,7 @@ type Chip struct {
|
|||||||
AccountId string `gorm:"column:account_id;primaryKey"`
|
AccountId string `gorm:"column:account_id;primaryKey"`
|
||||||
ItemId int32 `gorm:"column:item_id"`
|
ItemId int32 `gorm:"column:item_id"`
|
||||||
ItemNum int32 `gorm:"column:item_num"`
|
ItemNum int32 `gorm:"column:item_num"`
|
||||||
|
ExpireTime int32 `gorm:"column:expiretime;<-:create"`
|
||||||
CreateTime int32 `gorm:"column:createtime;<-:create"`
|
CreateTime int32 `gorm:"column:createtime;<-:create"`
|
||||||
ModifyTime int32 `gorm:"column:modifytime"`
|
ModifyTime int32 `gorm:"column:modifytime"`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user