bingo 优化去掉忽略空格

This commit is contained in:
meixiongfeng 2022-11-23 09:56:14 +08:00
parent a7f82085d3
commit fc3f67c1f0
2 changed files with 91 additions and 0 deletions

View File

@ -718,5 +718,95 @@
"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
}
]
}
]

View File

@ -62,6 +62,7 @@ func (this *GM) OnInstallComp() {
//bingo:Iamyoudad
func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (code pb.ErrorCode) {
code = pb.ErrorCode_ReqParameterError
cmd = strings.Replace(cmd, " ", "", -1) // 去空格
keys := strings.Split(cmd, ":")
if len(keys) == 2 {
if keys[0] == "bingo" {