模块注册
This commit is contained in:
parent
38de051978
commit
a875f850ba
@ -11,7 +11,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
//参数校验
|
//参数校验
|
||||||
func (this *apiComp) DeskSkillLvCkeck(session comm.IUserSession, req *pb.SmithyDeskSkillLvReq) (code pb.ErrorCode) {
|
func (this *apiComp) DeskSkillLvCheck(session comm.IUserSession, req *pb.SmithyDeskSkillLvReq) (code pb.ErrorCode) {
|
||||||
if req.DeskType == 0 {
|
if req.DeskType == 0 {
|
||||||
code = pb.ErrorCode_ReqParameterError
|
code = pb.ErrorCode_ReqParameterError
|
||||||
}
|
}
|
||||||
@ -23,7 +23,7 @@ func (this *apiComp) DeskSkillLv(session comm.IUserSession, req *pb.SmithyDeskSk
|
|||||||
bFindSkill bool
|
bFindSkill bool
|
||||||
curSkillCfg *cfg.GameSmithyData
|
curSkillCfg *cfg.GameSmithyData
|
||||||
)
|
)
|
||||||
code = this.DeskSkillLvCkeck(session, req)
|
code = this.DeskSkillLvCheck(session, req)
|
||||||
if code != pb.ErrorCode_Success {
|
if code != pb.ErrorCode_Success {
|
||||||
return // 参数校验失败直接返回
|
return // 参数校验失败直接返回
|
||||||
}
|
}
|
||||||
|
@ -10,14 +10,14 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
//参数校验
|
//参数校验
|
||||||
func (this *apiComp) StoveSkillLvCkeck(session comm.IUserSession, req *pb.SmithyStoveSkillLvReq) (code pb.ErrorCode) {
|
func (this *apiComp) StoveSkillLvCheck(session comm.IUserSession, req *pb.SmithyStoveSkillLvReq) (code pb.ErrorCode) {
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *apiComp) StoveSkillLv(session comm.IUserSession, req *pb.SmithyStoveSkillLvReq) (code pb.ErrorCode, dat proto.Message) {
|
func (this *apiComp) StoveSkillLv(session comm.IUserSession, req *pb.SmithyStoveSkillLvReq) (code pb.ErrorCode, dat proto.Message) {
|
||||||
|
|
||||||
code = this.StoveSkillLvCkeck(session, req)
|
code = this.StoveSkillLvCheck(session, req)
|
||||||
if code != pb.ErrorCode_Success {
|
if code != pb.ErrorCode_Success {
|
||||||
return // 参数校验失败直接返回
|
return // 参数校验失败直接返回
|
||||||
}
|
}
|
||||||
|
@ -52,6 +52,7 @@ func (this *configureComp) GetSmithyConfigData(smithyType int32, level int32) (d
|
|||||||
return this._smithyMap[int64(smithyType<<16)+int64(level)]
|
return this._smithyMap[int64(smithyType<<16)+int64(level)]
|
||||||
}
|
}
|
||||||
func (this *configureComp) GetSmithyTypeConfigData() (mapType map[int32]struct{}) {
|
func (this *configureComp) GetSmithyTypeConfigData() (mapType map[int32]struct{}) {
|
||||||
|
mapType = make(map[int32]struct{}, 0)
|
||||||
if v, err := this.GetConfigure(game_smithy); err == nil {
|
if v, err := this.GetConfigure(game_smithy); err == nil {
|
||||||
if configure, ok := v.(*cfg.GameSmithy); ok {
|
if configure, ok := v.(*cfg.GameSmithy); ok {
|
||||||
for _, v1 := range configure.GetDataList() {
|
for _, v1 := range configure.GetDataList() {
|
||||||
|
@ -18,6 +18,7 @@ import (
|
|||||||
"go_dreamfactory/modules/pagoda"
|
"go_dreamfactory/modules/pagoda"
|
||||||
"go_dreamfactory/modules/rtask"
|
"go_dreamfactory/modules/rtask"
|
||||||
"go_dreamfactory/modules/shop"
|
"go_dreamfactory/modules/shop"
|
||||||
|
"go_dreamfactory/modules/smithy"
|
||||||
"go_dreamfactory/modules/task"
|
"go_dreamfactory/modules/task"
|
||||||
"go_dreamfactory/modules/user"
|
"go_dreamfactory/modules/user"
|
||||||
"go_dreamfactory/modules/viking"
|
"go_dreamfactory/modules/viking"
|
||||||
@ -67,6 +68,7 @@ func main() {
|
|||||||
martialhall.NewModule(),
|
martialhall.NewModule(),
|
||||||
rtask.NewModule(),
|
rtask.NewModule(),
|
||||||
viking.NewModule(),
|
viking.NewModule(),
|
||||||
|
smithy.NewModule(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user