bingo 优化去掉忽略空格
This commit is contained in:
parent
a7f82085d3
commit
fc3f67c1f0
@ -718,5 +718,95 @@
|
|||||||
"n": 1
|
"n": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"index": "51",
|
||||||
|
"var": [
|
||||||
|
{
|
||||||
|
"a": "hero",
|
||||||
|
"t": "43901",
|
||||||
|
"n": 50
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"index": "52",
|
||||||
|
"var": [
|
||||||
|
{
|
||||||
|
"a": "hero",
|
||||||
|
"t": "43902",
|
||||||
|
"n": 50
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"index": "53",
|
||||||
|
"var": [
|
||||||
|
{
|
||||||
|
"a": "hero",
|
||||||
|
"t": "43903",
|
||||||
|
"n": 50
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"index": "54",
|
||||||
|
"var": [
|
||||||
|
{
|
||||||
|
"a": "hero",
|
||||||
|
"t": "43921",
|
||||||
|
"n": 50
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"index": "55",
|
||||||
|
"var": [
|
||||||
|
{
|
||||||
|
"a": "hero",
|
||||||
|
"t": "44921",
|
||||||
|
"n": 50
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"index": "56",
|
||||||
|
"var": [
|
||||||
|
{
|
||||||
|
"a": "hero",
|
||||||
|
"t": "42911",
|
||||||
|
"n": 50
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"index": "57",
|
||||||
|
"var": [
|
||||||
|
{
|
||||||
|
"a": "hero",
|
||||||
|
"t": "43911",
|
||||||
|
"n": 50
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"index": "58",
|
||||||
|
"var": [
|
||||||
|
{
|
||||||
|
"a": "hero",
|
||||||
|
"t": "44911",
|
||||||
|
"n": 50
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"index": "59",
|
||||||
|
"var": [
|
||||||
|
{
|
||||||
|
"a": "hero",
|
||||||
|
"t": "45921",
|
||||||
|
"n": 50
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -62,6 +62,7 @@ func (this *GM) OnInstallComp() {
|
|||||||
//bingo:Iamyoudad
|
//bingo:Iamyoudad
|
||||||
func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (code pb.ErrorCode) {
|
func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (code pb.ErrorCode) {
|
||||||
code = pb.ErrorCode_ReqParameterError
|
code = pb.ErrorCode_ReqParameterError
|
||||||
|
cmd = strings.Replace(cmd, " ", "", -1) // 去空格
|
||||||
keys := strings.Split(cmd, ":")
|
keys := strings.Split(cmd, ":")
|
||||||
if len(keys) == 2 {
|
if len(keys) == 2 {
|
||||||
if keys[0] == "bingo" {
|
if keys[0] == "bingo" {
|
||||||
|
Loading…
Reference in New Issue
Block a user