Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
3610acd2
Commit
3610acd2
authored
Jan 04, 2019
by
张振华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
table refactor
parent
462ecf6e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
exec_del_local.go
plugin/dapp/guess/executor/exec_del_local.go
+1
-1
table.go
plugin/dapp/guess/types/table.go
+1
-1
No files found.
plugin/dapp/guess/executor/exec_del_local.go
View file @
3610acd2
...
@@ -66,7 +66,7 @@ func (g *Guess) rollbackIndex(log *gty.ReceiptGuessGame) (kvs []*types.KeyValue)
...
@@ -66,7 +66,7 @@ func (g *Guess) rollbackIndex(log *gty.ReceiptGuessGame) (kvs []*types.KeyValue)
if
log
.
Status
==
gty
.
GuessGameStatusStart
{
if
log
.
Status
==
gty
.
GuessGameStatusStart
{
//新创建游戏回滚,game表删除记录
//新创建游戏回滚,game表删除记录
err
=
tablejoin
.
MustGetTable
(
"game"
)
.
Del
([]
byte
(
fmt
.
Sprintf
(
"%018d"
,
log
.
StartIndex
)))
err
=
gameTable
.
Del
([]
byte
(
fmt
.
Sprintf
(
"%018d"
,
log
.
StartIndex
)))
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
return
nil
}
}
...
...
plugin/dapp/guess/types/table.go
View file @
3610acd2
...
@@ -44,7 +44,7 @@ func NewGuessUserRow() *GuessUserRow {
...
@@ -44,7 +44,7 @@ func NewGuessUserRow() *GuessUserRow {
//CreateRow 新建数据行(注意index 数据一定也要保存到数据中,不能就保存eventid)
//CreateRow 新建数据行(注意index 数据一定也要保存到数据中,不能就保存eventid)
func
(
tx
*
GuessUserRow
)
CreateRow
()
*
table
.
Row
{
func
(
tx
*
GuessUserRow
)
CreateRow
()
*
table
.
Row
{
return
&
table
.
Row
{
Data
:
&
ReceiptGuessGame
{}}
return
&
table
.
Row
{
Data
:
&
UserBet
{}}
}
}
//SetPayload 设置数据
//SetPayload 设置数据
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment