Commit 590649af authored by gitlab's avatar gitlab Committed by vipwzw

auto ci

parent 09d43a1a
...@@ -30,4 +30,4 @@ status: Create 1 -> Match 2 -> Cancel 3 -> Close 4 ...@@ -30,4 +30,4 @@ status: Create 1 -> Match 2 -> Cancel 3 -> Close 4
// staus == 1 (创建,开始猜拳游戏) // staus == 1 (创建,开始猜拳游戏)
// status == 2 (匹配,参与) // status == 2 (匹配,参与)
// status == 3 (取消) // status == 3 (取消)
// status == 4 (Close的情况) // status == 4 (Close的情况)
\ No newline at end of file
...@@ -8,12 +8,12 @@ import "fmt" ...@@ -8,12 +8,12 @@ import "fmt"
// some errors definition // some errors definition
var ( var (
ErrGameCreateAmount = fmt.Errorf("%s","You fill in more than the maximum number of games.") ErrGameCreateAmount = fmt.Errorf("%s", "You fill in more than the maximum number of games.")
ErrGameCancleAddr = fmt.Errorf("%s","You don't have permission to cancel someone else's game.") ErrGameCancleAddr = fmt.Errorf("%s", "You don't have permission to cancel someone else's game.")
ErrGameCloseAddr = fmt.Errorf("%s","The game time has not yet expired,You don't have permission to call yet.") ErrGameCloseAddr = fmt.Errorf("%s", "The game time has not yet expired,You don't have permission to call yet.")
ErrGameTimeOut = fmt.Errorf("%s","The game has expired.,You don't have permission to call.") ErrGameTimeOut = fmt.Errorf("%s", "The game has expired.,You don't have permission to call.")
ErrGameMatchStatus = fmt.Errorf("%s","can't join the game, the game has matched or finished!") ErrGameMatchStatus = fmt.Errorf("%s", "can't join the game, the game has matched or finished!")
ErrGameMatch = fmt.Errorf("%s","can't join the game, You can't match the game you created!") ErrGameMatch = fmt.Errorf("%s", "can't join the game, You can't match the game you created!")
ErrGameCancleStatus = fmt.Errorf("%s","can't cancle the game, the game has matched!") ErrGameCancleStatus = fmt.Errorf("%s", "can't cancle the game, the game has matched!")
ErrGameCloseStatus = fmt.Errorf("%s","can't close the game again, the game has finished!") ErrGameCloseStatus = fmt.Errorf("%s", "can't close the game again, the game has finished!")
) )
...@@ -107,7 +107,7 @@ func (gt GameType) CreateTx(action string, message json.RawMessage) (*types.Tran ...@@ -107,7 +107,7 @@ func (gt GameType) CreateTx(action string, message json.RawMessage) (*types.Tran
return CreateRawGamePreCloseTx(&param) return CreateRawGamePreCloseTx(&param)
} }
return nil, types.ErrNotSupport return nil, types.ErrNotSupport
} }
// CreateRawGamePreCreateTx unused,just empty implementation // CreateRawGamePreCreateTx unused,just empty implementation
......
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