移除旧武馆
This commit is contained in:
parent
95a07aa0ec
commit
457ed31fff
@ -49,10 +49,10 @@ func (this *apiComp) Get(session comm.IUserSession, req *pb.ReddotGetReq) (code
|
||||
for k, v := range this.module.arena.Reddot(session, _rid) {
|
||||
reddot[int32(k)] = v
|
||||
}
|
||||
case comm.Reddot23, comm.Reddot24, comm.Reddot25:
|
||||
for k, v := range this.module.martialhall.Reddot(session, _rid) {
|
||||
reddot[int32(k)] = v
|
||||
}
|
||||
// case comm.Reddot23, comm.Reddot24, comm.Reddot25:
|
||||
// for k, v := range this.module.martialhall.Reddot(session, _rid) {
|
||||
// reddot[int32(k)] = v
|
||||
// }
|
||||
case comm.Reddot20, comm.Reddot21, comm.Reddot22:
|
||||
for k, v := range this.module.gourmet.Reddot(session, _rid) {
|
||||
reddot[int32(k)] = v
|
||||
|
@ -34,9 +34,9 @@ func (this *apiComp) GetAll(session comm.IUserSession, req *pb.ReddotGetAllReq)
|
||||
for k, v := range this.module.horoscope.Reddot(session, comm.Reddot17) {
|
||||
reddot[int32(k)] = v
|
||||
}
|
||||
for k, v := range this.module.martialhall.Reddot(session, comm.Reddot23, comm.Reddot24, comm.Reddot25) {
|
||||
reddot[int32(k)] = v
|
||||
}
|
||||
// for k, v := range this.module.martialhall.Reddot(session, comm.Reddot23, comm.Reddot24, comm.Reddot25) {
|
||||
// reddot[int32(k)] = v
|
||||
// }
|
||||
for k, v := range this.module.arena.Reddot(session, comm.Reddot19) {
|
||||
reddot[int32(k)] = v
|
||||
}
|
||||
|
@ -21,17 +21,17 @@ type Reddot struct {
|
||||
modules.ModuleBase
|
||||
service base.IRPCXService
|
||||
|
||||
pagoda comm.IPagoda
|
||||
martialhall comm.IMartialhall
|
||||
horoscope comm.IHoroscope
|
||||
arena comm.IArena
|
||||
gourmet comm.IGourmet
|
||||
sociaty comm.ISociaty
|
||||
mail comm.Imail
|
||||
viking comm.IViking
|
||||
hunting comm.IHunting
|
||||
api_comp *apiComp
|
||||
mline comm.IMline
|
||||
pagoda comm.IPagoda
|
||||
// martialhall comm.IMartialhall
|
||||
horoscope comm.IHoroscope
|
||||
arena comm.IArena
|
||||
gourmet comm.IGourmet
|
||||
sociaty comm.ISociaty
|
||||
mail comm.Imail
|
||||
viking comm.IViking
|
||||
hunting comm.IHunting
|
||||
api_comp *apiComp
|
||||
mline comm.IMline
|
||||
}
|
||||
|
||||
//模块名
|
||||
@ -56,10 +56,10 @@ func (this *Reddot) Start() (err error) {
|
||||
return
|
||||
}
|
||||
this.pagoda = module.(comm.IPagoda)
|
||||
if module, err = this.service.GetModule(comm.ModuleMartialhall); err != nil {
|
||||
return
|
||||
}
|
||||
this.martialhall = module.(comm.IMartialhall)
|
||||
// if module, err = this.service.GetModule(comm.ModuleMartialhall); err != nil {
|
||||
// return
|
||||
// }
|
||||
// this.martialhall = module.(comm.IMartialhall)
|
||||
if module, err = this.service.GetModule(comm.ModuleHoroscope); err != nil {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user