bingo 跳过随机任务
This commit is contained in:
parent
5f6de83b62
commit
d95e45c574
@ -15,6 +15,9 @@ import (
|
||||
3、修改心魔塔进度:bingo:pataid,10(10代表层数)
|
||||
|
||||
4、修改玩家经验值:bingo:exp,1000(1000代表新增的经验值 //
|
||||
|
||||
5、跳过随机任务 bingo:rtask,1,1001
|
||||
6、bingo:Iamyoudad
|
||||
*/
|
||||
//参数校验
|
||||
func (this *apiComp) CmdCheck(session comm.IUserSession, req *pb.GMCmdReq) (code pb.ErrorCode) {
|
||||
|
@ -7,6 +7,7 @@ import (
|
||||
"go_dreamfactory/modules"
|
||||
"go_dreamfactory/pb"
|
||||
cfg "go_dreamfactory/sys/configure/structs"
|
||||
"go_dreamfactory/utils"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
@ -83,6 +84,7 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (code pb.ErrorC
|
||||
return
|
||||
}
|
||||
code = module1.(comm.IMainline).ModifyMainlineData(session.GetUserId(), int32(num))
|
||||
|
||||
this.Debug("使用bingo命令", log.Field{"uid", session.GetUserId()}, log.Field{"0", datas[0]}, log.Field{"N", int32(num)})
|
||||
} else if len(datas) == 2 && (datas[0] == "pataid") {
|
||||
module1, err := this.service.GetModule(comm.ModulePagoda)
|
||||
@ -95,7 +97,7 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (code pb.ErrorC
|
||||
return
|
||||
}
|
||||
code = module1.(comm.IPagoda).ModifyPagodaFloor(session, int32(num))
|
||||
this.Debug("使用bingo命令", log.Field{"uid", session.GetUserId()}, log.Field{"0", datas[0]}, log.Field{"N", int32(num)})
|
||||
this.Debug("使用bingo命令:uid = %s ", log.Field{"uid", session.GetUserId()}, log.Field{"0", datas[0]}, log.Field{"N", int32(num)})
|
||||
} else if len(datas) == 1 && (datas[0] == "Iamyoudad" || datas[0] == "iamyoudad") {
|
||||
var (
|
||||
res []*cfg.Gameatn
|
||||
@ -111,7 +113,13 @@ func (this *GM) CreateCmd(session comm.IUserSession, cmd string) (code pb.ErrorC
|
||||
}
|
||||
}
|
||||
this.Debugf("使用bingo命令", log.Field{"uid", session.GetUserId()}, datas[0], res)
|
||||
} else if len(datas) == 3 && (datas[0] == "rtask") {
|
||||
err := this.ModuleRtask.BingoRtask(session, utils.ToInt32(datas[1]), utils.ToInt32(datas[2]))
|
||||
if err != nil {
|
||||
this.Errorf("bingo rdTask Failed ,Parameter :%s,%s %v", datas[1], datas[2], err)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user