掠夺到达时间配置
This commit is contained in:
parent
3e268abbfa
commit
641a4b543b
@ -43,6 +43,7 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.PlunderCha
|
||||
heros []*pb.DBHero
|
||||
hids []string
|
||||
lock *redis.RedisMutex
|
||||
addTime int32
|
||||
)
|
||||
update = make(map[string]interface{})
|
||||
changExp = make(map[string]int32, 0)
|
||||
@ -152,14 +153,20 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.PlunderCha
|
||||
|
||||
_id := primitive.NewObjectID().Hex()
|
||||
// 创建一条船的信息
|
||||
if req.Itype == 0 { // 普通运输走普通到达时间
|
||||
addTime = conf.Extime
|
||||
} else {
|
||||
addTime = conf.Extime
|
||||
}
|
||||
shipData = &pb.ShipData{
|
||||
Uid: session.GetUserId(),
|
||||
Line: &pb.PlunderLine{
|
||||
Itype: req.Itype,
|
||||
Etime: configure.Now().Unix() + int64(conf.Extime),
|
||||
Etime: configure.Now().Unix() + int64(addTime),
|
||||
Cid: conf.Id,
|
||||
Oid: _id,
|
||||
},
|
||||
|
||||
Index: req.Pos,
|
||||
Status: 0,
|
||||
Cd: 0,
|
||||
|
Loading…
Reference in New Issue
Block a user