获取所有装备
This commit is contained in:
parent
d21a7ab716
commit
0c60f0d2ac
@ -35,6 +35,7 @@ import (
|
|||||||
18、bingo:lv,50
|
18、bingo:lv,50
|
||||||
19、bingo:recharge,10
|
19、bingo:recharge,10
|
||||||
20、bingo:cleanitem
|
20、bingo:cleanitem
|
||||||
|
21、bingo:allequip
|
||||||
*/
|
*/
|
||||||
//参数校验
|
//参数校验
|
||||||
func (this *apiComp) CmdCheck(session comm.IUserSession, req *pb.GMCmdReq) (code pb.ErrorCode) {
|
func (this *apiComp) CmdCheck(session comm.IUserSession, req *pb.GMCmdReq) (code pb.ErrorCode) {
|
||||||
|
@ -395,8 +395,21 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (code pb.ErrorC
|
|||||||
log.Field{Key: "uid", Value: session.GetUserId()},
|
log.Field{Key: "uid", Value: session.GetUserId()},
|
||||||
log.Field{Key: "0", Value: datas[0]},
|
log.Field{Key: "0", Value: datas[0]},
|
||||||
)
|
)
|
||||||
}
|
} else if len(datas) == 1 && (datas[0] == "allequip") { // 充值次数
|
||||||
|
module1, err := this.service.GetModule(comm.ModuleEquipment)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if code = module1.(comm.IEquipment).AddAllEquipments(session); code != pb.ErrorCode_Success {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
this.Debug("使用bingo命令:uid = %s ",
|
||||||
|
log.Field{Key: "uid", Value: session.GetUserId()},
|
||||||
|
log.Field{Key: "0", Value: datas[0]},
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user