转string

This commit is contained in:
meixiongfeng 2022-09-02 19:03:21 +08:00
parent 15b8284462
commit 5358359316

View File

@ -4,6 +4,7 @@ import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
"go_dreamfactory/utils"
"strconv"
"time"
"google.golang.org/protobuf/proto"
@ -31,7 +32,7 @@ func (this *apiComp) GetList(session comm.IUserSession, req *pb.VikingGetListReq
_cfg := this.module.configure.GetVikingBossTypeConfigData()
for k := range _cfg {
list.Boss[k] = 0
str := string(k) + "_0"
str := strconv.Itoa(int(k)) + "_0"
list.BossTime[str] = 0
}
}