update
This commit is contained in:
parent
981d1bc1da
commit
05c1cbf323
@ -10,14 +10,16 @@ import (
|
||||
/* GM 在控制台输入的字符串类型
|
||||
//bingo:item,10001,1
|
||||
//bingo:attr,gold,1000000
|
||||
//bingo:equi,xxx,1 // xxx 装备id
|
||||
2、修改主线关卡进度:bingo:mapid,102(102代表关卡位置)
|
||||
|
||||
3、修改心魔塔进度:bingo:pataid,10(10代表层数)
|
||||
|
||||
4、修改玩家经验值:bingo:exp,1000(1000代表新增的经验值 //
|
||||
4、修改玩家经验值:bingo:attr,exp,1000(1000代表新增的经验值 //
|
||||
|
||||
5、跳过随机任务 bingo:rtask,1,1001
|
||||
6、bingo:Iamyoudad
|
||||
7、bingo:vip,yueka_1,1 // 月卡类型
|
||||
*/
|
||||
//参数校验
|
||||
func (this *apiComp) CmdCheck(session comm.IUserSession, req *pb.GMCmdReq) (code pb.ErrorCode) {
|
||||
|
@ -59,7 +59,9 @@ func (this *SeasonPagoda) Start() (err error) {
|
||||
configure.RegisterConfigure(game_seasonreward, cfg.NewGamePagodaSeasonReward, nil)
|
||||
cron.AddFunc("0 0 23 L * ?", this.TimerSeasonOver) //每月最后一天23点执行一次
|
||||
cron.AddFunc("0 0 5 /* * ?", this.TimerSeasonStar) //每月第一天5点执行一次
|
||||
|
||||
if db.IsCross() {
|
||||
return
|
||||
}
|
||||
conn, err := db.Cross()
|
||||
if err == nil {
|
||||
model := db.NewDBModel(comm.TableServerData, 0, conn)
|
||||
@ -86,18 +88,7 @@ func (this *SeasonPagoda) Start() (err error) {
|
||||
|
||||
return
|
||||
}
|
||||
func (this *SeasonPagoda) CreatTestData(index int) {
|
||||
seasonPagoda := &pb.DBPagoda{}
|
||||
seasonPagoda.Id = primitive.NewObjectID().Hex()
|
||||
|
||||
seasonPagoda.Uid = "dfmxf_634f8f28609d489230fb40fa"
|
||||
seasonPagoda.PagodaId = int32(index) // 初始数据0层
|
||||
seasonPagoda.Type = 201 // TODO 新的塔数据根据配置文件获取
|
||||
if err := this.Add(seasonPagoda.Uid, seasonPagoda); err != nil {
|
||||
this.module.Errorf("err:%v", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
func (this *SeasonPagoda) GetSeasonReward() []int32 {
|
||||
sz := make([]int32, 0)
|
||||
if v, err := this.GetConfigure(game_seasonreward); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user