上传补杨大赛代码优化
This commit is contained in:
parent
1bdaa38367
commit
38a0f0249f
@ -2,6 +2,7 @@ package parkour
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/lego/core"
|
||||
"go_dreamfactory/modules"
|
||||
"go_dreamfactory/sys/configure"
|
||||
@ -73,7 +74,7 @@ func (this *configureComp) getGameBuzkashiMount(id string) (configure *cfg.GameB
|
||||
return
|
||||
} else {
|
||||
if configure, ok = v.(*cfg.GameBuzkashiMount).GetDataMap()[id]; !ok {
|
||||
err = fmt.Errorf("not found:%s ", id)
|
||||
err = comm.NewNotFoundConfErr(moduleName, game_buzkashimount, id)
|
||||
this.module.Errorln(err)
|
||||
return
|
||||
}
|
||||
|
@ -85,6 +85,7 @@ func (this *ModelParkourComp) getrusers(uid string) (recommend []*pb.DBRaceMembe
|
||||
continue
|
||||
}
|
||||
if mount, err = this.module.configure.getGameBuzkashiMount(users[v].parkour.Dfmount); err != nil {
|
||||
err = nil
|
||||
continue
|
||||
}
|
||||
users[v].member = &pb.DBRaceMember{
|
||||
|
@ -23,6 +23,8 @@ import (
|
||||
开发:李伟
|
||||
*/
|
||||
|
||||
const moduleName = "补羊大赛"
|
||||
|
||||
var _ comm.IParkour = (*Parkour)(nil)
|
||||
|
||||
func NewModule() core.IModule {
|
||||
|
Loading…
Reference in New Issue
Block a user