Commit 3610acd2 authored by 张振华's avatar 张振华

table refactor

parent 462ecf6e
......@@ -66,7 +66,7 @@ func (g *Guess) rollbackIndex(log *gty.ReceiptGuessGame) (kvs []*types.KeyValue)
if log.Status == gty.GuessGameStatusStart {
//新创建游戏回滚,game表删除记录
err = tablejoin.MustGetTable("game").Del([]byte(fmt.Sprintf("%018d", log.StartIndex)))
err = gameTable.Del([]byte(fmt.Sprintf("%018d", log.StartIndex)))
if err != nil {
return nil
}
......
......@@ -44,7 +44,7 @@ func NewGuessUserRow() *GuessUserRow {
//CreateRow 新建数据行(注意index 数据一定也要保存到数据中,不能就保存eventid)
func (tx *GuessUserRow) CreateRow() *table.Row {
return &table.Row{Data: &ReceiptGuessGame{}}
return &table.Row{Data: &UserBet{}}
}
//SetPayload 设置数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment