测试转换问题

This commit is contained in:
ZJY 2021-09-09 12:11:53 +08:00
parent 35a8e4bc69
commit 7577293296

View File

@ -5,6 +5,7 @@ import (
"io/ioutil"
"os"
"regexp"
"strconv"
"strings"
"time"
@ -71,7 +72,7 @@ var handleMessage = func(msgs ...interface{}) interface{} {
sender.IsAdmin = true
}
if IsUserAdmin(string(sender.UserID)) {
if IsUserAdmin(strconv.Itoa(sender.UserID)) {
sender.IsAdmin = true
}