上传海盗配置

This commit is contained in:
liwei1dao 2024-02-20 14:09:14 +08:00
parent 5e7dc8c1a6
commit d3918c6964
2 changed files with 4 additions and 4 deletions

View File

@ -16,8 +16,8 @@ func (this *apiComp) UpgradeCheck(session comm.IUserSession, req *pb.IsLandUpgra
func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.IsLandUpgradeReq) (errdata *pb.ErrorData) { func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.IsLandUpgradeReq) (errdata *pb.ErrorData) {
var ( var (
info *pb.DBIsland info *pb.DBIsland
conf *cfg.GamePuggsySkillData conf *cfg.GameHoroscopeData
front *cfg.GamePuggsySkillData front *cfg.GameHoroscopeData
err error err error
) )
if errdata = this.UpgradeCheck(session, req); errdata != nil { if errdata = this.UpgradeCheck(session, req); errdata != nil {

View File

@ -81,7 +81,7 @@ func (this *ConfigureComp) getGamePuggsyFightData(id int32) (configure *cfg.Game
} }
//技能节点 //技能节点
func (this *ConfigureComp) getGamePuggsySkillData(id int32) (configure *cfg.GamePuggsySkillData, err error) { func (this *ConfigureComp) getGamePuggsySkillData(id int32) (configure *cfg.GameHoroscopeData, err error) {
var ( var (
v interface{} v interface{}
ok bool ok bool
@ -90,7 +90,7 @@ func (this *ConfigureComp) getGamePuggsySkillData(id int32) (configure *cfg.Game
this.module.Errorf("err:%v", err) this.module.Errorf("err:%v", err)
return return
} else { } else {
if configure, ok = v.(*cfg.GamePuggsySkill).GetDataMap()[id]; !ok { if configure, ok = v.(*cfg.GameHoroscope).GetDataMap()[id]; !ok {
err = fmt.Errorf("no found Material:%d configure", id) err = fmt.Errorf("no found Material:%d configure", id)
this.module.Errorf("err:%v", err) this.module.Errorf("err:%v", err)
return return