Closed vatebur closed 4 months ago
推测是max值边界有问题,有空再修
POLE.GO:
max := len(articles)
.....
if first == second || first == third || second == third {
ctx.SendChain(message.At(ctx.Event.UserID), message.Text("[0]请输入正确的序号\n", list))
continue
}
if first > max || second > max || third > max {
ctx.SendChain(message.At(ctx.Event.UserID), message.Text("[", max, "]请输入正确的序号\n", list))
continue
}
报错信息
复现演示: 只有0-5号鱼竿时,输入不存在的6号竿,会引起报错。