gm
This commit is contained in:
parent
f9fa1ef05c
commit
772d3d6f33
@ -707,6 +707,7 @@ type (
|
|||||||
}
|
}
|
||||||
IMoonlv interface {
|
IMoonlv interface {
|
||||||
IBuriedUpdateNotify
|
IBuriedUpdateNotify
|
||||||
|
GMCreateMoonlv(session IUserSession, lv int32)
|
||||||
}
|
}
|
||||||
//捉虫子
|
//捉虫子
|
||||||
ICatchBugs interface {
|
ICatchBugs interface {
|
||||||
|
@ -548,7 +548,7 @@ func (this *Buried) TriggerBuried(session comm.IUserSession, burieds ...*pb.Buri
|
|||||||
this.Error("远程触发埋点错误!", log.Field{Key: "uid", Value: session.GetUserId()}, log.Field{Key: "err", Value: err.Error()})
|
this.Error("远程触发埋点错误!", log.Field{Key: "uid", Value: session.GetUserId()}, log.Field{Key: "err", Value: err.Error()})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if _, err = this.service.AcrossClusterRpcGo(
|
if err = this.service.AcrossClusterRpcCall(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
stag,
|
stag,
|
||||||
comm.Service_Worker,
|
comm.Service_Worker,
|
||||||
|
@ -136,7 +136,7 @@ func (this *apiComp) Train(session comm.IUserSession, req *pb.DragonTrainReq) (e
|
|||||||
rsp.Reward = atno
|
rsp.Reward = atno
|
||||||
}
|
}
|
||||||
if curType != preType { // 坐骑升阶 增加属性
|
if curType != preType { // 坐骑升阶 增加属性
|
||||||
if c, err := this.module.configure.GetDragonMount(dragon.Dragonid, curType); err != nil {
|
if c, err := this.module.configure.GetDragonMount(dragon.Dragonid, curType); err == nil {
|
||||||
dragon.Property = make(map[string]int32)
|
dragon.Property = make(map[string]int32)
|
||||||
dragon.Property["stime"] = c.Stime
|
dragon.Property["stime"] = c.Stime
|
||||||
dragon.Property["etime"] = c.Etime
|
dragon.Property["etime"] = c.Etime
|
||||||
|
@ -824,6 +824,20 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (errdata *pb.Er
|
|||||||
log.Field{Key: "0", Value: datas[0]},
|
log.Field{Key: "0", Value: datas[0]},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
} else if len(datas) == 2 && (datas[0] == "moonlv") { // 等级
|
||||||
|
module1, err := this.service.GetModule(comm.ModuleMoonlv)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if lv, err := strconv.Atoi(datas[1]); err == nil {
|
||||||
|
module1.(comm.IMoonlv).GMCreateMoonlv(session, int32(lv))
|
||||||
|
|
||||||
|
this.Debug("使用bingo命令",
|
||||||
|
log.Field{Key: "uid", Value: session.GetUserId()},
|
||||||
|
log.Field{Key: "0", Value: datas[1]},
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -113,3 +113,10 @@ func (this *Moonlv) BuriedsNotify(session comm.IUserSession, conds []*pb.ConIPro
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (this *Moonlv) GMCreateMoonlv(session comm.IUserSession, lv int32) {
|
||||||
|
if lv <= 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.modelMoonlv.modifyMoonlvList(session.GetUserId(), map[string]interface{}{"lv": lv})
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user