fix: 修复空提交问题
This commit is contained in:
@@ -3,7 +3,6 @@ package controller
|
||||
import (
|
||||
"blazing/common/data/xmlres"
|
||||
"blazing/common/socket/errorcode"
|
||||
"math/rand"
|
||||
"strings"
|
||||
|
||||
"blazing/logic/service/fight"
|
||||
@@ -39,7 +38,7 @@ func processMonID(bm string) string {
|
||||
selected = monid[0]
|
||||
default:
|
||||
// 长度大于1时,随机选取一个
|
||||
randomIdx := rand.Intn(len(monid))
|
||||
randomIdx := grand.Intn(len(monid))
|
||||
selected = monid[randomIdx]
|
||||
}
|
||||
return selected
|
||||
|
||||
Reference in New Issue
Block a user