上传海盗配置

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) {
var (
info *pb.DBIsland
conf *cfg.GamePuggsySkillData
front *cfg.GamePuggsySkillData
conf *cfg.GameHoroscopeData
front *cfg.GameHoroscopeData
err error
)
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 (
v interface{}
ok bool
@ -90,7 +90,7 @@ func (this *ConfigureComp) getGamePuggsySkillData(id int32) (configure *cfg.Game
this.module.Errorf("err:%v", err)
return
} 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)
this.module.Errorf("err:%v", err)
return