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
043707db
Commit
043707db
authored
Dec 07, 2018
by
张振华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
guess
parent
374b034b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
55 additions
and
50 deletions
+55
-50
guess.go
plugin/dapp/guess/executor/guess.go
+7
-3
guessdb.go
plugin/dapp/guess/executor/guessdb.go
+3
-3
query.go
plugin/dapp/guess/executor/query.go
+6
-6
guess.proto
plugin/dapp/guess/proto/guess.proto
+1
-1
guess.pb.go
plugin/dapp/guess/types/guess.pb.go
+37
-37
types.go
plugin/dapp/guess/types/types.go
+1
-0
No files found.
plugin/dapp/guess/executor/guess.go
View file @
043707db
...
@@ -58,8 +58,13 @@ func (g *Guess) GetDriverName() string {
...
@@ -58,8 +58,13 @@ func (g *Guess) GetDriverName() string {
return
pkt
.
GuessX
return
pkt
.
GuessX
}
}
/*
// GetPayloadValue GuessAction
// GetPayloadValue GuessAction
func (g *Guess) GetPayloadValue() types.Message {
func (g *Guess) GetPayloadValue() types.Message {
return &pkt.GuessGameAction{}
return &pkt.GuessGameAction{}
}
}*/
\ No newline at end of file
// CheckReceiptExecOk return true to check if receipt ty is ok
func
(
g
*
Guess
)
CheckReceiptExecOk
()
bool
{
return
true
}
plugin/dapp/guess/executor/guessdb.go
View file @
043707db
...
@@ -91,7 +91,8 @@ func (action *Action) CheckExecAccountBalance(fromAddr string, ToFrozen, ToActiv
...
@@ -91,7 +91,8 @@ func (action *Action) CheckExecAccountBalance(fromAddr string, ToFrozen, ToActiv
}
}
func
Key
(
id
string
)
(
key
[]
byte
)
{
func
Key
(
id
string
)
(
key
[]
byte
)
{
key
=
append
(
key
,
[]
byte
(
"mavl-"
+
types
.
ExecName
(
pkt
.
GuessX
)
+
"-"
)
...
)
//key = append(key, []byte("mavl-"+types.ExecName(pkt.GuessX)+"-")...)
key
=
append
(
key
,
[]
byte
(
"mavl-"
+
pkt
.
GuessX
+
"-"
)
...
)
key
=
append
(
key
,
[]
byte
(
id
)
...
)
key
=
append
(
key
,
[]
byte
(
id
)
...
)
return
key
return
key
}
}
...
@@ -415,8 +416,7 @@ func (action *Action) GameStart(start *pkt.GuessGameStart) (*types.Receipt, erro
...
@@ -415,8 +416,7 @@ func (action *Action) GameStart(start *pkt.GuessGameStart) (*types.Receipt, erro
game
.
PreIndex
=
0
game
.
PreIndex
=
0
game
.
Index
=
action
.
getIndex
()
game
.
Index
=
action
.
getIndex
()
game
.
Status
=
pkt
.
GuessGameStatusStart
game
.
Status
=
pkt
.
GuessGameStatusStart
game
.
BetStat
.
TotalBetTimes
=
0
game
.
BetStat
=
&
pkt
.
GuessBetStat
{
TotalBetTimes
:
0
,
TotalBetsNumber
:
0
}
game
.
BetStat
.
TotalBetsNumber
=
0
for
i
:=
0
;
i
<
len
(
options
);
i
++
{
for
i
:=
0
;
i
<
len
(
options
);
i
++
{
item
:=
&
pkt
.
GuessBetStatItem
{
Option
:
options
[
i
],
BetsNumber
:
0
,
BetsTimes
:
0
}
item
:=
&
pkt
.
GuessBetStatItem
{
Option
:
options
[
i
],
BetsNumber
:
0
,
BetsTimes
:
0
}
game
.
BetStat
.
Items
=
append
(
game
.
BetStat
.
Items
,
item
)
game
.
BetStat
.
Items
=
append
(
game
.
BetStat
.
Items
,
item
)
...
...
plugin/dapp/guess/executor/query.go
View file @
043707db
...
@@ -21,7 +21,7 @@ func (g *Guess) Query_QueryGameById(in *pkt.QueryGuessGameInfo) (types.Message,
...
@@ -21,7 +21,7 @@ func (g *Guess) Query_QueryGameById(in *pkt.QueryGuessGameInfo) (types.Message,
return
&
pkt
.
ReplyGuessGameInfo
{
Game
:
game
},
nil
return
&
pkt
.
ReplyGuessGameInfo
{
Game
:
game
},
nil
}
}
func
(
g
*
Guess
)
Query_QueryGameByAddr
(
in
*
pkt
.
QueryGuessGameInfo
)
(
types
.
Message
,
error
)
{
func
(
g
*
Guess
)
Query_QueryGame
s
ByAddr
(
in
*
pkt
.
QueryGuessGameInfo
)
(
types
.
Message
,
error
)
{
records
,
err
:=
getGameListByAddr
(
g
.
GetLocalDB
(),
in
.
Addr
,
in
.
Index
)
records
,
err
:=
getGameListByAddr
(
g
.
GetLocalDB
(),
in
.
Addr
,
in
.
Index
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
...
@@ -30,7 +30,7 @@ func (g *Guess) Query_QueryGameByAddr(in *pkt.QueryGuessGameInfo) (types.Message
...
@@ -30,7 +30,7 @@ func (g *Guess) Query_QueryGameByAddr(in *pkt.QueryGuessGameInfo) (types.Message
return
records
,
nil
return
records
,
nil
}
}
func
(
g
*
Guess
)
Query_QueryGameByStatus
(
in
*
pkt
.
QueryGuessGameInfo
)
(
types
.
Message
,
error
)
{
func
(
g
*
Guess
)
Query_QueryGame
s
ByStatus
(
in
*
pkt
.
QueryGuessGameInfo
)
(
types
.
Message
,
error
)
{
records
,
err
:=
getGameListByStatus
(
g
.
GetLocalDB
(),
in
.
Status
,
in
.
Index
)
records
,
err
:=
getGameListByStatus
(
g
.
GetLocalDB
(),
in
.
Status
,
in
.
Index
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
...
@@ -39,7 +39,7 @@ func (g *Guess) Query_QueryGameByStatus(in *pkt.QueryGuessGameInfo) (types.Messa
...
@@ -39,7 +39,7 @@ func (g *Guess) Query_QueryGameByStatus(in *pkt.QueryGuessGameInfo) (types.Messa
return
records
,
nil
return
records
,
nil
}
}
func
(
g
*
Guess
)
Query_QueryGameByAdminAddr
(
in
*
pkt
.
QueryGuessGameInfo
)
(
types
.
Message
,
error
)
{
func
(
g
*
Guess
)
Query_QueryGame
s
ByAdminAddr
(
in
*
pkt
.
QueryGuessGameInfo
)
(
types
.
Message
,
error
)
{
records
,
err
:=
getGameListByAdminAddr
(
g
.
GetLocalDB
(),
in
.
AdminAddr
,
in
.
Index
)
records
,
err
:=
getGameListByAdminAddr
(
g
.
GetLocalDB
(),
in
.
AdminAddr
,
in
.
Index
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
...
@@ -48,7 +48,7 @@ func (g *Guess) Query_QueryGameByAdminAddr(in *pkt.QueryGuessGameInfo) (types.Me
...
@@ -48,7 +48,7 @@ func (g *Guess) Query_QueryGameByAdminAddr(in *pkt.QueryGuessGameInfo) (types.Me
return
records
,
nil
return
records
,
nil
}
}
func
(
g
*
Guess
)
Query_QueryGameByAddrStatus
(
in
*
pkt
.
QueryGuessGameInfo
)
(
types
.
Message
,
error
)
{
func
(
g
*
Guess
)
Query_QueryGame
s
ByAddrStatus
(
in
*
pkt
.
QueryGuessGameInfo
)
(
types
.
Message
,
error
)
{
records
,
err
:=
getGameListByAddrStatus
(
g
.
GetLocalDB
(),
in
.
Addr
,
in
.
Status
,
in
.
Index
)
records
,
err
:=
getGameListByAddrStatus
(
g
.
GetLocalDB
(),
in
.
Addr
,
in
.
Status
,
in
.
Index
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
...
@@ -57,7 +57,7 @@ func (g *Guess) Query_QueryGameByAddrStatus(in *pkt.QueryGuessGameInfo) (types.M
...
@@ -57,7 +57,7 @@ func (g *Guess) Query_QueryGameByAddrStatus(in *pkt.QueryGuessGameInfo) (types.M
return
records
,
nil
return
records
,
nil
}
}
func
(
g
*
Guess
)
Query_QueryGameByAdminStatus
(
in
*
pkt
.
QueryGuessGameInfo
)
(
types
.
Message
,
error
)
{
func
(
g
*
Guess
)
Query_QueryGame
s
ByAdminStatus
(
in
*
pkt
.
QueryGuessGameInfo
)
(
types
.
Message
,
error
)
{
records
,
err
:=
getGameListByAdminStatus
(
g
.
GetLocalDB
(),
in
.
AdminAddr
,
in
.
Status
,
in
.
Index
)
records
,
err
:=
getGameListByAdminStatus
(
g
.
GetLocalDB
(),
in
.
AdminAddr
,
in
.
Status
,
in
.
Index
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
...
@@ -66,7 +66,7 @@ func (g *Guess) Query_QueryGameByAdminStatus(in *pkt.QueryGuessGameInfo) (types.
...
@@ -66,7 +66,7 @@ func (g *Guess) Query_QueryGameByAdminStatus(in *pkt.QueryGuessGameInfo) (types.
return
records
,
nil
return
records
,
nil
}
}
func
(
g
*
Guess
)
Query_QueryGameByCategoryStatus
(
in
*
pkt
.
QueryGuessGameInfo
)
(
types
.
Message
,
error
)
{
func
(
g
*
Guess
)
Query_QueryGame
s
ByCategoryStatus
(
in
*
pkt
.
QueryGuessGameInfo
)
(
types
.
Message
,
error
)
{
records
,
err
:=
getGameListByCategoryStatus
(
g
.
GetLocalDB
(),
in
.
Category
,
in
.
Status
,
in
.
Index
)
records
,
err
:=
getGameListByCategoryStatus
(
g
.
GetLocalDB
(),
in
.
Category
,
in
.
Status
,
in
.
Index
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
...
...
plugin/dapp/guess/proto/guess.proto
View file @
043707db
...
@@ -72,7 +72,7 @@ message GuessGameAction {
...
@@ -72,7 +72,7 @@ message GuessGameAction {
GuessGamePublish
publish
=
5
;
GuessGamePublish
publish
=
5
;
GuessGameQuery
query
=
6
;
GuessGameQuery
query
=
6
;
}
}
u
int32
ty
=
7
;
int32
ty
=
7
;
}
}
//游戏启动
//游戏启动
...
...
plugin/dapp/guess/types/guess.pb.go
View file @
043707db
...
@@ -525,7 +525,7 @@ type GuessGameAction struct {
...
@@ -525,7 +525,7 @@ type GuessGameAction struct {
// *GuessGameAction_Publish
// *GuessGameAction_Publish
// *GuessGameAction_Query
// *GuessGameAction_Query
Value
isGuessGameAction_Value
`protobuf_oneof:"value"`
Value
isGuessGameAction_Value
`protobuf_oneof:"value"`
Ty
uint32
`protobuf:"varint,7,opt,name=ty,proto3" json:"ty,omitempty"`
Ty
int32
`protobuf:"varint,7,opt,name=ty,proto3" json:"ty,omitempty"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_NoUnkeyedLiteral
struct
{}
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_unrecognized
[]
byte
`json:"-"`
XXX_sizecache
int32
`json:"-"`
XXX_sizecache
int32
`json:"-"`
...
@@ -645,7 +645,7 @@ func (m *GuessGameAction) GetQuery() *GuessGameQuery {
...
@@ -645,7 +645,7 @@ func (m *GuessGameAction) GetQuery() *GuessGameQuery {
return
nil
return
nil
}
}
func
(
m
*
GuessGameAction
)
GetTy
()
u
int32
{
func
(
m
*
GuessGameAction
)
GetTy
()
int32
{
if
m
!=
nil
{
if
m
!=
nil
{
return
m
.
Ty
return
m
.
Ty
}
}
...
@@ -1965,7 +1965,7 @@ func init() {
...
@@ -1965,7 +1965,7 @@ func init() {
func
init
()
{
proto
.
RegisterFile
(
"guess.proto"
,
fileDescriptor_7574406c5d3430e8
)
}
func
init
()
{
proto
.
RegisterFile
(
"guess.proto"
,
fileDescriptor_7574406c5d3430e8
)
}
var
fileDescriptor_7574406c5d3430e8
=
[]
byte
{
var
fileDescriptor_7574406c5d3430e8
=
[]
byte
{
// 128
4
bytes of a gzipped FileDescriptorProto
// 128
6
bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xc4
,
0x58
,
0xcd
,
0x8e
,
0xe3
,
0x44
,
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0xc4
,
0x58
,
0xcd
,
0x8e
,
0xe3
,
0x44
,
0x10
,
0x9e
,
0x38
,
0x71
,
0x7e
,
0x2a
,
0xc9
,
0x4c
,
0xa6
,
0x67
,
0x7f
,
0xcc
,
0x30
,
0xa0
,
0x60
,
0xad
,
0x10
,
0x9e
,
0x38
,
0x71
,
0x7e
,
0x2a
,
0xc9
,
0x4c
,
0xa6
,
0x67
,
0x7f
,
0xcc
,
0x30
,
0xa0
,
0x60
,
0xad
,
0x96
,
0x80
,
0xb4
,
0x03
,
0xca
,
0x4a
,
0x08
,
0xad
,
0xc4
,
0x61
,
0xb2
,
0xab
,
0xdd
,
0x99
,
0x0b
,
0x2c
,
0x96
,
0x80
,
0xb4
,
0x03
,
0xca
,
0x4a
,
0x08
,
0xad
,
0xc4
,
0x61
,
0xb2
,
0xab
,
0xdd
,
0x99
,
0x0b
,
0x2c
,
...
@@ -2013,40 +2013,40 @@ var fileDescriptor_7574406c5d3430e8 = []byte{
...
@@ -2013,40 +2013,40 @@ var fileDescriptor_7574406c5d3430e8 = []byte{
0xee
,
0x4c
,
0xe6
,
0xcb
,
0x03
,
0x27
,
0xf1
,
0xc4
,
0x60
,
0xdc
,
0x61
,
0x10
,
0xc9
,
0x37
,
0x2e
,
0x08
,
0xee
,
0x4c
,
0xe6
,
0xcb
,
0x03
,
0x27
,
0xf1
,
0xc4
,
0x60
,
0xdc
,
0x61
,
0x10
,
0xc9
,
0x37
,
0x2e
,
0x08
,
0xe6
,
0x02
,
0x8d
,
0x18
,
0x0c
,
0x79
,
0xe1
,
0x19
,
0xe1
,
0x7c
,
0x38
,
0xf5
,
0x14
,
0x62
,
0x17
,
0x9c
,
0xe6
,
0x02
,
0x8d
,
0x18
,
0x0c
,
0x79
,
0xe1
,
0x19
,
0xe1
,
0x7c
,
0x38
,
0xf5
,
0x14
,
0x62
,
0x17
,
0x9c
,
0xf1
,
0x56
,
0x9a
,
0xf1
,
0x0c
,
0xe5
,
0x89
,
0x67
,
0x7c
,
0x98
,
0xf3
,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0x00
,
0x00
,
}
}
// Reference imports to suppress errors if they are not otherwise used.
// Reference imports to suppress errors if they are not otherwise used.
...
...
plugin/dapp/guess/types/types.go
View file @
043707db
...
@@ -139,6 +139,7 @@ func CreateRawGuessStartTx(parm *GuessGameStartTx) (*types.Transaction, error) {
...
@@ -139,6 +139,7 @@ func CreateRawGuessStartTx(parm *GuessGameStartTx) (*types.Transaction, error) {
Ty
:
GuessGameActionStart
,
Ty
:
GuessGameActionStart
,
Value
:
&
GuessGameAction_Start
{
Start
:
v
},
Value
:
&
GuessGameAction_Start
{
Start
:
v
},
}
}
llog
.
Info
(
"CreateRawGuessStartTx"
,
"Ty"
,
val
.
Ty
,
"GuessGameActionStart"
,
GuessGameActionStart
)
name
:=
types
.
ExecName
(
GuessX
)
name
:=
types
.
ExecName
(
GuessX
)
tx
:=
&
types
.
Transaction
{
tx
:=
&
types
.
Transaction
{
Execer
:
[]
byte
(
types
.
ExecName
(
GuessX
)),
Execer
:
[]
byte
(
types
.
ExecName
(
GuessX
)),
...
...
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