移除旧武馆
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) {
|
for k, v := range this.module.arena.Reddot(session, _rid) {
|
||||||
reddot[int32(k)] = v
|
reddot[int32(k)] = v
|
||||||
}
|
}
|
||||||
case comm.Reddot23, comm.Reddot24, comm.Reddot25:
|
// case comm.Reddot23, comm.Reddot24, comm.Reddot25:
|
||||||
for k, v := range this.module.martialhall.Reddot(session, _rid) {
|
// for k, v := range this.module.martialhall.Reddot(session, _rid) {
|
||||||
reddot[int32(k)] = v
|
// reddot[int32(k)] = v
|
||||||
}
|
// }
|
||||||
case comm.Reddot20, comm.Reddot21, comm.Reddot22:
|
case comm.Reddot20, comm.Reddot21, comm.Reddot22:
|
||||||
for k, v := range this.module.gourmet.Reddot(session, _rid) {
|
for k, v := range this.module.gourmet.Reddot(session, _rid) {
|
||||||
reddot[int32(k)] = v
|
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) {
|
for k, v := range this.module.horoscope.Reddot(session, comm.Reddot17) {
|
||||||
reddot[int32(k)] = v
|
reddot[int32(k)] = v
|
||||||
}
|
}
|
||||||
for k, v := range this.module.martialhall.Reddot(session, comm.Reddot23, comm.Reddot24, comm.Reddot25) {
|
// for k, v := range this.module.martialhall.Reddot(session, comm.Reddot23, comm.Reddot24, comm.Reddot25) {
|
||||||
reddot[int32(k)] = v
|
// reddot[int32(k)] = v
|
||||||
}
|
// }
|
||||||
for k, v := range this.module.arena.Reddot(session, comm.Reddot19) {
|
for k, v := range this.module.arena.Reddot(session, comm.Reddot19) {
|
||||||
reddot[int32(k)] = v
|
reddot[int32(k)] = v
|
||||||
}
|
}
|
||||||
|
@ -21,17 +21,17 @@ type Reddot struct {
|
|||||||
modules.ModuleBase
|
modules.ModuleBase
|
||||||
service base.IRPCXService
|
service base.IRPCXService
|
||||||
|
|
||||||
pagoda comm.IPagoda
|
pagoda comm.IPagoda
|
||||||
martialhall comm.IMartialhall
|
// martialhall comm.IMartialhall
|
||||||
horoscope comm.IHoroscope
|
horoscope comm.IHoroscope
|
||||||
arena comm.IArena
|
arena comm.IArena
|
||||||
gourmet comm.IGourmet
|
gourmet comm.IGourmet
|
||||||
sociaty comm.ISociaty
|
sociaty comm.ISociaty
|
||||||
mail comm.Imail
|
mail comm.Imail
|
||||||
viking comm.IViking
|
viking comm.IViking
|
||||||
hunting comm.IHunting
|
hunting comm.IHunting
|
||||||
api_comp *apiComp
|
api_comp *apiComp
|
||||||
mline comm.IMline
|
mline comm.IMline
|
||||||
}
|
}
|
||||||
|
|
||||||
//模块名
|
//模块名
|
||||||
@ -56,10 +56,10 @@ func (this *Reddot) Start() (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.pagoda = module.(comm.IPagoda)
|
this.pagoda = module.(comm.IPagoda)
|
||||||
if module, err = this.service.GetModule(comm.ModuleMartialhall); err != nil {
|
// if module, err = this.service.GetModule(comm.ModuleMartialhall); err != nil {
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
this.martialhall = module.(comm.IMartialhall)
|
// this.martialhall = module.(comm.IMartialhall)
|
||||||
if module, err = this.service.GetModule(comm.ModuleHoroscope); err != nil {
|
if module, err = this.service.GetModule(comm.ModuleHoroscope); err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user