新增工会等级解锁条件
This commit is contained in:
parent
073f13b76d
commit
93b40d4b98
@ -999,7 +999,7 @@ const (
|
|||||||
|
|
||||||
AddUpRecharge = 10 //累计充值
|
AddUpRecharge = 10 //累计充值
|
||||||
|
|
||||||
// 特殊类型活动 只受活动开启限制
|
// 特殊类型活动 只受活动开启限制 具体玩法 走excel 配置
|
||||||
HdTypeTurntable = 1001 //大转盘
|
HdTypeTurntable = 1001 //大转盘
|
||||||
HdCelebration = 1002 // 庆典活动
|
HdCelebration = 1002 // 庆典活动
|
||||||
)
|
)
|
||||||
|
@ -68,13 +68,12 @@ func (this *ModelSys) validCond(uid string, condData *cfg.GameOpencondData) stri
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 5:
|
case 5:
|
||||||
module, err := this.service.GetModule(comm.ModulePagoda)
|
if !this.moduleSys.pagoda.CheckCompletePagoda(uid) {
|
||||||
if err != nil {
|
|
||||||
this.moduleSys.Debugln(err)
|
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
if v, ok := module.(comm.IPagoda); ok {
|
case 6: // 查询工会等级
|
||||||
if !v.CheckCompletePagoda(uid) {
|
if s := this.moduleSys.sociaty.GetSociaty(uid); s != nil {
|
||||||
|
if s.Lv < conf.Param {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,10 @@ type ModuleSys struct {
|
|||||||
service base.IRPCXService
|
service base.IRPCXService
|
||||||
modelSys *ModelSys
|
modelSys *ModelSys
|
||||||
mainline comm.IMainline
|
mainline comm.IMainline
|
||||||
|
|
||||||
|
pagoda comm.IPagoda
|
||||||
|
|
||||||
|
sociaty comm.ISociaty
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewModule() core.IModule {
|
func NewModule() core.IModule {
|
||||||
@ -54,6 +58,18 @@ func (this *ModuleSys) Start() (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.mainline = module.(comm.IMainline)
|
this.mainline = module.(comm.IMainline)
|
||||||
|
|
||||||
|
if module, err = this.service.GetModule(comm.ModulePagoda); err != nil {
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.pagoda = module.(comm.IPagoda)
|
||||||
|
|
||||||
|
if module, err = this.service.GetModule(comm.ModuleSociaty); err != nil {
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.sociaty = module.(comm.ISociaty)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user