This commit is contained in:
liwei1dao 2022-07-21 17:02:32 +08:00
commit 2266d3872d
20 changed files with 261 additions and 353 deletions

View File

@ -110,3 +110,9 @@ const (
TASK_ACHIEVE TaskTag = 3 //成就 TASK_ACHIEVE TaskTag = 3 //成就
TASK_STRATEGY TaskTag = 4 // 攻略 TASK_STRATEGY TaskTag = 4 // 攻略
) )
const (
MailLineEasy string = "mainline_data_easy" // 简单
MailLineHard string = "mainline_data_hard" // 困难
MailLinePurgatory string = "mainline_data_purgatory" // 炼狱
)

View File

@ -17,7 +17,7 @@ type (
//邮件业务模块对外接口定义 提供给其他模块使用的 //邮件业务模块对外接口定义 提供给其他模块使用的
Imail interface { Imail interface {
CreateNewMail(uId string, mail *pb.DBMailData) bool CreateNewMail(session IUserSession, mail *pb.DBMailData) bool
} }
//道具背包接口 //道具背包接口
IItems interface { IItems interface {

View File

@ -641,3 +641,29 @@ func (this *MCompModel) logOpt(uid string, data interface{}, attrs ...*cache.Ope
} }
return nil return nil
} }
//获取用户通过扩展表
func (this *MCompModel) GetUserRecord(uid string) (result *pb.DBUserRecord, err error) {
result = &pb.DBUserRecord{}
key := fmt.Sprintf("userrecord:%s", uid)
if err = this.Redis.HGetAll(key, result); err != nil && err != redis.RedisNil {
return
}
if err == redis.RedisNil {
if err = this.DB.FindOne(core.SqlTable("userrecord"), bson.M{"uid": uid}).Decode(result); err != nil {
return
}
err = this.Redis.HMSet(key, result)
}
return
}
//修改用户扩展数据
func (this *MCompModel) ChangeUserRecord(uid string, value map[string]interface{}) (err error) {
key := fmt.Sprintf("userrecord:%s", uid)
if err = this.Redis.HMSet(key, value); err != nil && err != redis.RedisNil {
return
}
err = this.UpdateModelLogs("userrecord", uid, bson.M{"uid": uid}, value)
return
}

View File

@ -106,10 +106,13 @@ func (this *modelEquipmentComp) AddEquipments(uId string, cIds map[int32]uint32)
} }
} }
} }
if err = this.AddLists(uId, add); err != nil { if len(add) > 0 {
log.Errorf("err:%v", err) if err = this.AddLists(uId, add); err != nil {
return log.Errorf("err:%v", err)
return
}
} }
for _, v := range update { for _, v := range update {
if err = this.ChangeList(uId, v.Id, map[string]interface{}{"overlayNum": v.OverlayNum}); err != nil { if err = this.ChangeList(uId, v.Id, map[string]interface{}{"overlayNum": v.OverlayNum}); err != nil {
log.Errorf("err:%v", err) log.Errorf("err:%v", err)

View File

@ -25,7 +25,9 @@ func (this *apiComp) Resonance(session comm.IUserSession, req *pb.HeroResonanceR
totalCostCard int32 //消耗卡总数量 totalCostCard int32 //消耗卡总数量
_hero *pb.DBHero _hero *pb.DBHero
_costHero *pb.DBHero _costHero *pb.DBHero
changeHero []*pb.DBHero // 变化的英雄数据
) )
changeHero = make([]*pb.DBHero, 0)
szCostHero = make(map[string]int32, 0) szCostHero = make(map[string]int32, 0)
code = this.ResonanceCheck(session, req) // check code = this.ResonanceCheck(session, req) // check
if code != pb.ErrorCode_Success { if code != pb.ErrorCode_Success {
@ -80,11 +82,13 @@ func (this *apiComp) Resonance(session comm.IUserSession, req *pb.HeroResonanceR
code = pb.ErrorCode_HeroNoEnough // 消耗数量不对应 code = pb.ErrorCode_HeroNoEnough // 消耗数量不对应
return return
} }
for _, v := range req.CostObjID { for k, v := range szCostHero {
code = this.module.DelCard(session.GetUserId(), v, 1) // 删除材料卡 _delhero, c := this.module.DelCard(session.GetUserId(), k, v)
if code != pb.ErrorCode_Success { if c != pb.ErrorCode_Success {
code = c
return return
} }
changeHero = append(changeHero, _delhero)
} }
resonConfig, err1 := this.module.configure.GetHeroResonanceConfig(_hero.HeroID) resonConfig, err1 := this.module.configure.GetHeroResonanceConfig(_hero.HeroID)
@ -123,11 +127,12 @@ func (this *apiComp) Resonance(session comm.IUserSession, req *pb.HeroResonanceR
} }
} }
session.SendMsg(string(this.module.GetType()), "delhero", &pb.HeroDelHeroPush{Heros: szCostHero}) // 推送删除的英雄 err1 = this.module.modelHero.PushHeroProperty(session, _hero.Id) // 推送属性变化
err1 = this.module.modelHero.PushHeroProperty(session, _hero.Id) // 推送属性变化
if err1 != nil { if err1 != nil {
this.module.Errorf("PushHeroProperty err!") this.module.Errorf("PushHeroProperty err!")
} }
session.SendMsg(string(this.module.GetType()), "change", &pb.HeroChangePush{List: changeHero})
session.SendMsg(string(this.module.GetType()), Resonance, &pb.HeroResonanceResp{Hero: _hero}) session.SendMsg(string(this.module.GetType()), Resonance, &pb.HeroResonanceResp{Hero: _hero})
return return
} }

View File

@ -125,14 +125,13 @@ func (this *apiComp) StrengthenUpSkill(session comm.IUserSession, req *pb.HeroSt
return return
} }
// 扣除材料 // 扣除材料
code = this.module.DelCard(session.GetUserId(), req.CostCardObj, 1) delcard, c := this.module.DelCard(session.GetUserId(), req.CostCardObj, 1)
if code != pb.ErrorCode_Success { if c != pb.ErrorCode_Success {
code = pb.ErrorCode_DBError code = pb.ErrorCode_DBError
return return
} }
session.SendMsg(string(this.module.GetType()), "change", &pb.HeroChangePush{List: []*pb.DBHero{delcard}})
session.SendMsg(string(this.module.GetType()), "delhero", &pb.HeroDelHeroPush{Heros: map[string]int32{req.CostCardObj: 1}}) // 推送删除的英雄 err1 = this.module.modelHero.PushHeroProperty(session, _hero.Id) // 推送属性变化
err1 = this.module.modelHero.PushHeroProperty(session, _hero.Id) // 推送属性变化
if err1 != nil { if err1 != nil {
this.module.Errorf("PushHeroProperty err!") this.module.Errorf("PushHeroProperty err!")
} }

View File

@ -4,6 +4,7 @@ import (
"go_dreamfactory/comm" "go_dreamfactory/comm"
"go_dreamfactory/pb" "go_dreamfactory/pb"
cfg "go_dreamfactory/sys/configure/structs" cfg "go_dreamfactory/sys/configure/structs"
"math"
"google.golang.org/protobuf/proto" "google.golang.org/protobuf/proto"
) )
@ -41,6 +42,7 @@ func (this *apiComp) StrengthenUpStar(session comm.IUserSession, req *pb.HeroStr
mapCostHero map[string]int32 // 所有消耗英雄分类 mapCostHero map[string]int32 // 所有消耗英雄分类
bCheckNeedhero bool // 指定英雄校验 bCheckNeedhero bool // 指定英雄校验
bCheckRacehero bool // 种族英雄校验 bCheckRacehero bool // 种族英雄校验
chanegCard []*pb.DBHero // 变化的英雄数据
) )
mapCostHero = make(map[string]int32, 0) mapCostHero = make(map[string]int32, 0)
for _, v := range req.Hero { for _, v := range req.Hero {
@ -143,18 +145,48 @@ func (this *apiComp) StrengthenUpStar(session comm.IUserSession, req *pb.HeroStr
return return
} }
for k, v := range mapCostHero { for k, v := range mapCostHero {
code = this.module.DelCard(session.GetUserId(), k, v) _delcard, c := this.module.DelCard(session.GetUserId(), k, v)
if code != pb.ErrorCode_Success { if c != pb.ErrorCode_Success {
code = pb.ErrorCode_DBError code = pb.ErrorCode_DBError
this.module.Errorf("del hero err card:%s,count = %d", k, v) this.module.Errorf("del hero err card:%s,count = %d", k, v)
return return
} }
chanegCard = append(chanegCard, _delcard)
} }
session.SendMsg(string(this.module.GetType()), "delhero", &pb.HeroDelHeroPush{Heros: mapCostHero})
code = this.module.modelHero.HeroStarUp(session, _hero) // 执行升星操作 _heroMap := map[string]interface{}{
if code != pb.ErrorCode_Success { "star": _hero.Star + 1,
"isOverlying": false,
}
// 触发星级任务
this.module.ModuleTask.SendToTask(session.GetUserId(), comm.TaskTypeGetHero, &pb.TaskParam{First: _hero.Star + 1})
// 保存数据
err1 = this.module.modelHero.modifyHeroData(session.GetUserId(), _hero.Id, _heroMap)
if err1 != nil {
code = pb.ErrorCode_DBError
this.module.Errorf("update hero skill failed:%v", err1)
}
// 计算属性
data1 := make(map[string]int32, 0)
newConfig := this.module.configure.GetHeroStar(_hero.Star - 1)
if newConfig == nil {
code = pb.ErrorCode_ConfigurationException
return return
} }
data1[comm.Hp] = int32(math.Floor((1.0 + float64(newConfig.StarupHp)) * float64(_hero.Property[comm.Hp]) / 100))
data1[comm.Atk] = int32(math.Floor((1.0 + float64(newConfig.StarupAtk)) * float64(_hero.Property[comm.Atk]) / 100))
data1[comm.Def] = int32(math.Floor((1.0 + float64(newConfig.StarupDef)) * float64(_hero.Property[comm.Def]) / 100))
data1[comm.Speed] = int32(math.Floor((1.0 + float64(newConfig.StarupSpeed)) * float64(_hero.Property[comm.Speed]) / 100))
this.module.modelHero.mergeMainProperty(session.GetUserId(), _hero.Id, data1)
err1 = this.module.modelHero.PushHeroProperty(session, _hero.Id) // 推送属性变化
if err1 != nil {
code = pb.ErrorCode_Unknown
this.module.Errorf("PushHeroProperty err!")
}
session.SendMsg(string(this.module.GetType()), "change", &pb.HeroChangePush{List: chanegCard})
session.SendMsg(string(this.module.GetType()), StrengthenUpStar, &pb.HeroStrengthenUpStarResp{Hero: _hero}) session.SendMsg(string(this.module.GetType()), StrengthenUpStar, &pb.HeroStrengthenUpStarResp{Hero: _hero})
return return
} }

View File

@ -34,6 +34,7 @@ func (this *apiComp) StrengthenUplv(session comm.IUserSession, req *pb.HeroStren
_hero *pb.DBHero // 目标英雄 _hero *pb.DBHero // 目标英雄
_expHero *pb.DBHero // 消耗英雄 _expHero *pb.DBHero // 消耗英雄
minAddExp int32 minAddExp int32
_costHero []*pb.DBHero // 删除的英雄
) )
code = this.StrengthenUplvCheck(session, req) // check code = this.StrengthenUplvCheck(session, req) // check
@ -160,21 +161,22 @@ func (this *apiComp) StrengthenUplv(session comm.IUserSession, req *pb.HeroStren
// 删除经验卡 // 删除经验卡
for k, v := range req.ExpCards { for k, v := range req.ExpCards {
err1 := this.module.modelHero.consumeHeroCard(session.GetUserId(), k, v) costHero, err1 := this.module.modelHero.consumeHeroCard(session.GetUserId(), k, v)
if err1 != nil { if err1 != nil {
code = pb.ErrorCode_HeroNoEnough code = pb.ErrorCode_HeroNoEnough
this.module.Errorf("delete err failed err:%T!", err1) this.module.Errorf("delete err failed err:%T!", err1)
return return
} }
_costHero = append(_costHero, costHero)
} }
session.SendMsg(string(this.module.GetType()), "change", &pb.HeroChangePush{List: _costHero})
session.SendMsg(string(this.module.GetType()), "delhero", &pb.HeroDelHeroPush{Heros: req.ExpCards}) // 推送删除的英雄 err1 := this.module.modelHero.PushHeroProperty(session, _hero.Id) // 推送属性变化
err1 := this.module.modelHero.PushHeroProperty(session, _hero.Id) // 推送属性变化
if err1 != nil { if err1 != nil {
this.module.Errorf("PushHeroProperty err!") this.module.Errorf("PushHeroProperty err!")
} }
_hero.Lv = curLv _hero.Lv = curLv
_hero.Exp = curExp _hero.Exp = curExp
session.SendMsg(string(this.module.GetType()), StrengthenUplv, &pb.HeroStrengthenUplvResp{Hero: _hero}) session.SendMsg(string(this.module.GetType()), StrengthenUplv, &pb.HeroStrengthenUplvResp{Hero: _hero})
return return
} }

View File

@ -195,27 +195,29 @@ func (this *ModelHero) getOneHero(uid, heroId string) *pb.DBHero {
} }
//消耗英雄卡 //消耗英雄卡
func (this *ModelHero) consumeHeroCard(uid, heroId string, count int32) (err error) { func (this *ModelHero) consumeHeroCard(uid, heroId string, count int32) (hero *pb.DBHero, err error) {
if count == 0 { if count == 0 {
return return
} }
hero := this.getOneHero(uid, heroId) hero = this.getOneHero(uid, heroId)
if hero == nil { if hero == nil {
return errors.New("hero no exist") err = errors.New("hero no exist")
return
} }
if hero.SameCount < count { if hero.SameCount < count {
return errors.New("hero card no enough") err = errors.New("hero card no enough")
return
} }
hero.SameCount -= count
if hero.SameCount-count == 0 { if hero.SameCount == 0 {
if err := this.moduleHero.modelHero.DelListlds(uid, heroId); err != nil { if err := this.moduleHero.modelHero.DelListlds(uid, heroId); err != nil {
this.moduleHero.Errorf("%v", err) this.moduleHero.Errorf("%v", err)
} }
} else { } else {
update := map[string]interface{}{ update := map[string]interface{}{
"sameCount": hero.SameCount - count, "sameCount": hero.SameCount,
} }
err = this.modifyHeroData(uid, heroId, update) err = this.modifyHeroData(uid, heroId, update)
} }
@ -269,10 +271,9 @@ func (this *ModelHero) setEquipment(hero *pb.DBHero) (newHero *pb.DBHero, err er
} }
update := make(map[string]interface{}) update := make(map[string]interface{})
if hero.IsOverlying { if hero.IsOverlying && hero.SameCount > 1 {
if hero.SameCount-1 > 0 { hero.SameCount -= 1
update["sameCount"] = hero.SameCount - 1 update["sameCount"] = hero.SameCount
}
update["isOverlying"] = false update["isOverlying"] = false
if err = this.modifyHeroData(hero.Uid, hero.Id, update); err != nil { if err = this.modifyHeroData(hero.Uid, hero.Id, update); err != nil {
this.moduleHero.Errorf("%v", err) this.moduleHero.Errorf("%v", err)
@ -291,8 +292,12 @@ func (this *ModelHero) setEquipment(hero *pb.DBHero) (newHero *pb.DBHero, err er
return return
} else { } else {
update["equipID"] = hero.EquipID update["equipID"] = hero.EquipID
update["isoverlying"] = false
}
// 打印
for _, v := range hero.EquipID {
this.moduleHero.Debugf("设置装备%s\n", v)
} }
this.modifyHeroData(hero.Uid, hero.Id, update) this.modifyHeroData(hero.Uid, hero.Id, update)
return return
} }
@ -409,45 +414,6 @@ func (this *ModelHero) PushHeroProperty(session comm.IUserSession, heroId string
} }
return session.SendMsg("hero", "property", &pb.HeroPropertyPush{Property: m}) return session.SendMsg("hero", "property", &pb.HeroPropertyPush{Property: m})
} }
// 英雄升星
func (this *ModelHero) HeroStarUp(session comm.IUserSession, hero *pb.DBHero) (code pb.ErrorCode) {
_heroMap := map[string]interface{}{
"star": hero.Star + 1,
"isOverlying": false,
}
// 触发星级任务
this.moduleHero.ModuleTask.SendToTask(session.GetUserId(), comm.TaskTypeGetHero, &pb.TaskParam{First: hero.Star + 1})
// 保存数据
err1 := this.modifyHeroData(session.GetUserId(), hero.Id, _heroMap)
if err1 != nil {
code = pb.ErrorCode_DBError
this.moduleHero.Errorf("update hero skill failed:%v", err1)
}
// 计算属性
data := make(map[string]int32, 0)
newConfig := this.moduleHero.configure.GetHeroStar(hero.Star - 1)
if newConfig == nil {
code = pb.ErrorCode_ConfigurationException
return
}
data[comm.Hp] = int32(math.Floor((1.0 + float64(newConfig.StarupHp)) * float64(hero.Property[comm.Hp]) / 100))
data[comm.Atk] = int32(math.Floor((1.0 + float64(newConfig.StarupAtk)) * float64(hero.Property[comm.Atk]) / 100))
data[comm.Def] = int32(math.Floor((1.0 + float64(newConfig.StarupDef)) * float64(hero.Property[comm.Def]) / 100))
data[comm.Speed] = int32(math.Floor((1.0 + float64(newConfig.StarupSpeed)) * float64(hero.Property[comm.Speed]) / 100))
this.mergeMainProperty(session.GetUserId(), hero.Id, data)
err1 = this.PushHeroProperty(session, hero.Id) // 推送属性变化
if err1 != nil {
code = pb.ErrorCode_Unknown
this.moduleHero.Errorf("PushHeroProperty err!")
}
return
}
func (this *ModelHero) cleanData(uid string) { func (this *ModelHero) cleanData(uid string) {
userList := this.moduleHero.GetHeroList(uid) userList := this.moduleHero.GetHeroList(uid)
for _, v := range userList { for _, v := range userList {

View File

@ -76,14 +76,12 @@ func (this *Hero) UpdateEquipment(session comm.IUserSession, hero *pb.DBHero, eq
list = append(list, hero) list = append(list, hero)
session.SendMsg("hero", "change", &pb.HeroChangePush{List: list}) session.SendMsg("hero", "change", &pb.HeroChangePush{List: list})
} }
this.modelHero.setEquipProperty(hero, equip)
err1 := this.modelHero.PushHeroProperty(session, hero.Id) // 推送属性变化 err1 := this.modelHero.PushHeroProperty(session, hero.Id) // 推送属性变化
if err1 != nil { if err1 != nil {
code = pb.ErrorCode_Unknown code = pb.ErrorCode_Unknown
this.Errorf("PushHeroProperty err!") this.Errorf("PushHeroProperty err!")
} }
this.modelHero.setEquipProperty(hero, equip)
return return
} }
@ -180,10 +178,14 @@ func (this *Hero) AddCardExp(uid string, heroId string, exp int32) (code pb.Erro
} }
// 删除指定卡牌 // 删除指定卡牌
func (this *Hero) DelCard(udi string, cardid string, amount int32) (code pb.ErrorCode) { func (this *Hero) DelCard(udi string, cardid string, amount int32) (hero *pb.DBHero, code pb.ErrorCode) {
err := this.modelHero.consumeHeroCard(udi, cardid, amount) var (
err error
)
hero, err = this.modelHero.consumeHeroCard(udi, cardid, amount)
if err != nil { if err != nil {
return pb.ErrorCode_DBError code = pb.ErrorCode_DBError
return
} }
return return
} }

View File

@ -34,7 +34,7 @@ func (this *modelMail) Init(service core.IService, module core.IModule, comp cor
func (this *modelMail) Mail_QueryUserMail(uId string) (mail []*pb.DBMailData, err error) { func (this *modelMail) Mail_QueryUserMail(uId string) (mail []*pb.DBMailData, err error) {
if _data, err := this.DB.Find(DB_MailTable, bson.M{"userid": uId}); err == nil { if _data, err := this.DB.Find(DB_MailTable, bson.M{"uid": uId}); err == nil {
for _data.Next(context.TODO()) { for _data.Next(context.TODO()) {
temp := &pb.DBMailData{} temp := &pb.DBMailData{}
if err = _data.Decode(temp); err == nil { if err = _data.Decode(temp); err == nil {

View File

@ -46,7 +46,7 @@ func (this *Mail) OnInstallComp() {
// Check: false, // Check: false,
// Reward: false, // Reward: false,
// } // }
func (this *Mail) CreateNewMail(uId string, mail *pb.DBMailData) bool { func (this *Mail) CreateNewMail(session comm.IUserSession, mail *pb.DBMailData) bool {
if mail == nil { if mail == nil {
return false return false
@ -56,16 +56,13 @@ func (this *Mail) CreateNewMail(uId string, mail *pb.DBMailData) bool {
this.ModuleBase.Errorf("create mail failed") this.ModuleBase.Errorf("create mail failed")
} }
// 通知玩家 // 通知玩家
this.AddNewMailPush(uId, mail) this.AddNewMailPush(session, mail)
return true return true
} }
// 获得新邮件 推送给玩家 // 获得新邮件 推送给玩家
func (this *Mail) AddNewMailPush(uid string, mail *pb.DBMailData) (err error) { func (this *Mail) AddNewMailPush(session comm.IUserSession, mail *pb.DBMailData) (err error) {
if session, ok := this.GetUserSession(uid); ok { session.SendMsg(string(this.GetType()), "getnewmail", &pb.MailGetNewMailPush{Mail: mail})
session.SendMsg(string(this.GetType()), "getnewmail", &pb.MailGetNewMailPush{Mail: mail})
err = session.Push()
}
return return
} }

View File

@ -24,6 +24,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.MainlineChalle
var ( var (
curChapter *pb.DBMainline // 当前章节信息 curChapter *pb.DBMainline // 当前章节信息
bBranch bool // 当前挑战关卡是不是分支 bBranch bool // 当前挑战关卡是不是分支
bCheck bool
) )
bBranch = false bBranch = false
code = this.ChallengeCheck(session, req) code = this.ChallengeCheck(session, req)
@ -48,6 +49,16 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.MainlineChalle
code = pb.ErrorCode_ConfigNoFound code = pb.ErrorCode_ConfigNoFound
return return
} }
for _, v := range chaptConfig.Episode { // 校验是不是当前章节的关卡
if v == int32(req.MainlineId) {
bCheck = true
break
}
}
if !bCheck {
code = pb.ErrorCode_ReqParameterError // 不是该章节的关卡
return
}
if curChapter == nil { if curChapter == nil {
if len(chaptConfig.Episode) <= 0 { if len(chaptConfig.Episode) <= 0 {
code = pb.ErrorCode_ConfigNoFound code = pb.ErrorCode_ConfigNoFound
@ -69,7 +80,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.MainlineChalle
//curChapter.MainlineId = chaptConfig.Fubendata[0] // 第一次挑战 //curChapter.MainlineId = chaptConfig.Fubendata[0] // 第一次挑战
} }
// 根据难度找对应的配置文件 // 根据难度找对应的配置文件
if chaptConfig.Intensity == "1" { // 这里按临时配置读取 后面会修改 if chaptConfig.Intensity == comm.MailLineEasy {
con := this.module.configure.GetMainlineEasyChapter(int32(req.MainlineId)) // 根据配置文件找 con := this.module.configure.GetMainlineEasyChapter(int32(req.MainlineId)) // 根据配置文件找
if con == nil { if con == nil {
code = pb.ErrorCode_ConfigNoFound code = pb.ErrorCode_ConfigNoFound
@ -86,7 +97,7 @@ func (this *apiComp) Challenge(session comm.IUserSession, req *pb.MainlineChalle
} }
// TODO 调用战斗逻辑 // TODO 调用战斗逻辑
// 挑战成功 // 挑战成功
curChapter.MainlineId += 1 // 临时数据 后面配置表完善查找 curChapter.MainlineId = int32(req.MainlineId)
if bBranch { if bBranch {
curChapter.BranchID = append(curChapter.BranchID, int32(req.ChapterId)) // 记录分支关卡 curChapter.BranchID = append(curChapter.BranchID, int32(req.ChapterId)) // 记录分支关卡
} }

View File

@ -278,17 +278,10 @@ func (this *ModuleBase) DispenseRes(session comm.IUserSession, res []*cfg.Game_a
hero, err := this.ModuleHero.CreateRepeatHero(session.GetUserId(), int32(resID), v.N) hero, err := this.ModuleHero.CreateRepeatHero(session.GetUserId(), int32(resID), v.N)
if err != nil { if err != nil {
code = pb.ErrorCode_HeroMaxCount code = pb.ErrorCode_HeroMaxCount
return
} }
// 创建英雄成功 向客户端推送数据 session.SendMsg("hero", "change", &pb.HeroChangePush{List: []*pb.DBHero{hero}})
session.SendMsg("hero", "addnewhero", &pb.HeroAddNewHeroPush{Hero: hero, Count: v.N})
// if bPush {
// if session, ok := this.GetUserSession(uid); ok {
// session.SendMsg("hero", "addnewhero", &pb.HeroAddNewHeroPush{Hero: hero, Count: v.N})
// err = session.Push()
// }
// }
} else if v.A == comm.EquipmentType { } else if v.A == comm.EquipmentType {
resID, _ = strconv.Atoi(v.T) resID, _ = strconv.Atoi(v.T)
code = this.ModuleEquipment.AddNewEquipments(source, session, map[int32]uint32{int32(resID): uint32(v.N)}, bPush) code = this.ModuleEquipment.AddNewEquipments(source, session, map[int32]uint32{int32(resID): uint32(v.N)}, bPush)

View File

@ -24,6 +24,7 @@ type apiComp struct {
service base.IRPCXService service base.IRPCXService
module *User module *User
hero comm.IHero hero comm.IHero
mail comm.Imail
} }
func (this *apiComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) { func (this *apiComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
@ -42,5 +43,10 @@ func (this *apiComp) Start() (err error) {
return return
} }
this.hero = module.(comm.IHero) this.hero = module.(comm.IHero)
if module, err = this.service.GetModule(comm.ModuleMail); err != nil {
return
}
this.mail = module.(comm.Imail)
return return
} }

View File

@ -9,6 +9,7 @@ import (
"go_dreamfactory/utils" "go_dreamfactory/utils"
"time" "time"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo"
"google.golang.org/protobuf/proto" "google.golang.org/protobuf/proto"
) )
@ -115,6 +116,30 @@ func (this *apiComp) Login(session comm.IUserSession, req *pb.UserLoginReq) (cod
} }
}() }()
} }
mail := &pb.DBMailData{
ObjId: primitive.NewObjectID().Hex(),
Uid: user.Uid,
Title: "系统邮件",
Contex: "恭喜获得专属礼包一份",
CreateTime: uint64(time.Now().Unix()),
DueTime: uint64(time.Now().Unix()) + 30*24*3600, // 30天需要走配置文件
Check: false,
Reward: false,
}
fj := make([]*pb.UserAssets, 0)
atn1 := &pb.UserAssets{
A: "hero",
T: "25001",
N: 1,
}
atn2 := &pb.UserAssets{
A: "item",
T: "10001",
N: 100,
}
fj = append(fj, atn1)
fj = append(fj, atn2)
mail.Items = fj
this.mail.CreateNewMail(session, mail)
return return
} }

View File

@ -1315,62 +1315,6 @@ func (x *HeroLockResp) GetHero() *DBHero {
return nil return nil
} }
// 增加新英雄推送
type HeroAddNewHeroPush struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Hero *DBHero `protobuf:"bytes,1,opt,name=hero,proto3" json:"hero"` // 英雄对象
Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count"` //数量
}
func (x *HeroAddNewHeroPush) Reset() {
*x = HeroAddNewHeroPush{}
if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HeroAddNewHeroPush) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HeroAddNewHeroPush) ProtoMessage() {}
func (x *HeroAddNewHeroPush) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[25]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use HeroAddNewHeroPush.ProtoReflect.Descriptor instead.
func (*HeroAddNewHeroPush) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{25}
}
func (x *HeroAddNewHeroPush) GetHero() *DBHero {
if x != nil {
return x.Hero
}
return nil
}
func (x *HeroAddNewHeroPush) GetCount() int32 {
if x != nil {
return x.Count
}
return 0
}
// 测试用(获取指定星级等级的英雄) // 测试用(获取指定星级等级的英雄)
type HeroGetSpecifiedReq struct { type HeroGetSpecifiedReq struct {
state protoimpl.MessageState state protoimpl.MessageState
@ -1386,7 +1330,7 @@ type HeroGetSpecifiedReq struct {
func (x *HeroGetSpecifiedReq) Reset() { func (x *HeroGetSpecifiedReq) Reset() {
*x = HeroGetSpecifiedReq{} *x = HeroGetSpecifiedReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[26] mi := &file_hero_hero_msg_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1399,7 +1343,7 @@ func (x *HeroGetSpecifiedReq) String() string {
func (*HeroGetSpecifiedReq) ProtoMessage() {} func (*HeroGetSpecifiedReq) ProtoMessage() {}
func (x *HeroGetSpecifiedReq) ProtoReflect() protoreflect.Message { func (x *HeroGetSpecifiedReq) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[26] mi := &file_hero_hero_msg_proto_msgTypes[25]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1412,7 +1356,7 @@ func (x *HeroGetSpecifiedReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use HeroGetSpecifiedReq.ProtoReflect.Descriptor instead. // Deprecated: Use HeroGetSpecifiedReq.ProtoReflect.Descriptor instead.
func (*HeroGetSpecifiedReq) Descriptor() ([]byte, []int) { func (*HeroGetSpecifiedReq) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{26} return file_hero_hero_msg_proto_rawDescGZIP(), []int{25}
} }
func (x *HeroGetSpecifiedReq) GetHeroCoinfigID() int32 { func (x *HeroGetSpecifiedReq) GetHeroCoinfigID() int32 {
@ -1454,7 +1398,7 @@ type HeroGetSpecifiedResp struct {
func (x *HeroGetSpecifiedResp) Reset() { func (x *HeroGetSpecifiedResp) Reset() {
*x = HeroGetSpecifiedResp{} *x = HeroGetSpecifiedResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[27] mi := &file_hero_hero_msg_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1467,7 +1411,7 @@ func (x *HeroGetSpecifiedResp) String() string {
func (*HeroGetSpecifiedResp) ProtoMessage() {} func (*HeroGetSpecifiedResp) ProtoMessage() {}
func (x *HeroGetSpecifiedResp) ProtoReflect() protoreflect.Message { func (x *HeroGetSpecifiedResp) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[27] mi := &file_hero_hero_msg_proto_msgTypes[26]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1480,7 +1424,7 @@ func (x *HeroGetSpecifiedResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use HeroGetSpecifiedResp.ProtoReflect.Descriptor instead. // Deprecated: Use HeroGetSpecifiedResp.ProtoReflect.Descriptor instead.
func (*HeroGetSpecifiedResp) Descriptor() ([]byte, []int) { func (*HeroGetSpecifiedResp) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{27} return file_hero_hero_msg_proto_rawDescGZIP(), []int{26}
} }
func (x *HeroGetSpecifiedResp) GetHero() *DBHero { func (x *HeroGetSpecifiedResp) GetHero() *DBHero {
@ -1490,53 +1434,6 @@ func (x *HeroGetSpecifiedResp) GetHero() *DBHero {
return nil return nil
} }
type HeroDelHeroPush struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Heros map[string]int32 `protobuf:"bytes,1,rep,name=heros,proto3" json:"heros" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
}
func (x *HeroDelHeroPush) Reset() {
*x = HeroDelHeroPush{}
if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *HeroDelHeroPush) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HeroDelHeroPush) ProtoMessage() {}
func (x *HeroDelHeroPush) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[28]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use HeroDelHeroPush.ProtoReflect.Descriptor instead.
func (*HeroDelHeroPush) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{28}
}
func (x *HeroDelHeroPush) GetHeros() map[string]int32 {
if x != nil {
return x.Heros
}
return nil
}
// 抽卡 // 抽卡
type HeroDrawCardReq struct { type HeroDrawCardReq struct {
state protoimpl.MessageState state protoimpl.MessageState
@ -1549,7 +1446,7 @@ type HeroDrawCardReq struct {
func (x *HeroDrawCardReq) Reset() { func (x *HeroDrawCardReq) Reset() {
*x = HeroDrawCardReq{} *x = HeroDrawCardReq{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[29] mi := &file_hero_hero_msg_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1562,7 +1459,7 @@ func (x *HeroDrawCardReq) String() string {
func (*HeroDrawCardReq) ProtoMessage() {} func (*HeroDrawCardReq) ProtoMessage() {}
func (x *HeroDrawCardReq) ProtoReflect() protoreflect.Message { func (x *HeroDrawCardReq) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[29] mi := &file_hero_hero_msg_proto_msgTypes[27]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1575,7 +1472,7 @@ func (x *HeroDrawCardReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use HeroDrawCardReq.ProtoReflect.Descriptor instead. // Deprecated: Use HeroDrawCardReq.ProtoReflect.Descriptor instead.
func (*HeroDrawCardReq) Descriptor() ([]byte, []int) { func (*HeroDrawCardReq) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{29} return file_hero_hero_msg_proto_rawDescGZIP(), []int{27}
} }
func (x *HeroDrawCardReq) GetDrawType() int32 { func (x *HeroDrawCardReq) GetDrawType() int32 {
@ -1596,7 +1493,7 @@ type HeroDrawCardResp struct {
func (x *HeroDrawCardResp) Reset() { func (x *HeroDrawCardResp) Reset() {
*x = HeroDrawCardResp{} *x = HeroDrawCardResp{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[30] mi := &file_hero_hero_msg_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1609,7 +1506,7 @@ func (x *HeroDrawCardResp) String() string {
func (*HeroDrawCardResp) ProtoMessage() {} func (*HeroDrawCardResp) ProtoMessage() {}
func (x *HeroDrawCardResp) ProtoReflect() protoreflect.Message { func (x *HeroDrawCardResp) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[30] mi := &file_hero_hero_msg_proto_msgTypes[28]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1622,7 +1519,7 @@ func (x *HeroDrawCardResp) ProtoReflect() protoreflect.Message {
// Deprecated: Use HeroDrawCardResp.ProtoReflect.Descriptor instead. // Deprecated: Use HeroDrawCardResp.ProtoReflect.Descriptor instead.
func (*HeroDrawCardResp) Descriptor() ([]byte, []int) { func (*HeroDrawCardResp) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{30} return file_hero_hero_msg_proto_rawDescGZIP(), []int{28}
} }
func (x *HeroDrawCardResp) GetHeroes() []int32 { func (x *HeroDrawCardResp) GetHeroes() []int32 {
@ -1644,7 +1541,7 @@ type HeroChangePush struct {
func (x *HeroChangePush) Reset() { func (x *HeroChangePush) Reset() {
*x = HeroChangePush{} *x = HeroChangePush{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_hero_hero_msg_proto_msgTypes[31] mi := &file_hero_hero_msg_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1657,7 +1554,7 @@ func (x *HeroChangePush) String() string {
func (*HeroChangePush) ProtoMessage() {} func (*HeroChangePush) ProtoMessage() {}
func (x *HeroChangePush) ProtoReflect() protoreflect.Message { func (x *HeroChangePush) ProtoReflect() protoreflect.Message {
mi := &file_hero_hero_msg_proto_msgTypes[31] mi := &file_hero_hero_msg_proto_msgTypes[29]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1670,7 +1567,7 @@ func (x *HeroChangePush) ProtoReflect() protoreflect.Message {
// Deprecated: Use HeroChangePush.ProtoReflect.Descriptor instead. // Deprecated: Use HeroChangePush.ProtoReflect.Descriptor instead.
func (*HeroChangePush) Descriptor() ([]byte, []int) { func (*HeroChangePush) Descriptor() ([]byte, []int) {
return file_hero_hero_msg_proto_rawDescGZIP(), []int{31} return file_hero_hero_msg_proto_rawDescGZIP(), []int{29}
} }
func (x *HeroChangePush) GetList() []*DBHero { func (x *HeroChangePush) GetList() []*DBHero {
@ -1806,40 +1703,27 @@ var file_hero_hero_msg_proto_rawDesc = []byte{
0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x69, 0x64, 0x22, 0x2b, 0x0a, 0x0c, 0x48, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x69, 0x64, 0x22, 0x2b, 0x0a, 0x0c, 0x48,
0x65, 0x72, 0x6f, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x4c, 0x6f, 0x63, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x04, 0x68,
0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x48, 0x65,
0x72, 0x6f, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x22, 0x47, 0x0a, 0x12, 0x48, 0x65, 0x72, 0x6f, 0x72, 0x6f, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x22, 0x77, 0x0a, 0x13, 0x48, 0x65, 0x72, 0x6f,
0x41, 0x64, 0x64, 0x4e, 0x65, 0x77, 0x48, 0x65, 0x72, 0x6f, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1b, 0x47, 0x65, 0x74, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x52, 0x65, 0x71, 0x12,
0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x24, 0x0a, 0x0d, 0x68, 0x65, 0x72, 0x6f, 0x43, 0x6f, 0x69, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x44,
0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x68, 0x65, 0x72, 0x6f, 0x43, 0x6f, 0x69, 0x6e,
0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18,
0x74, 0x22, 0x77, 0x0a, 0x13, 0x48, 0x65, 0x72, 0x6f, 0x47, 0x65, 0x74, 0x53, 0x70, 0x65, 0x63, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a,
0x69, 0x66, 0x69, 0x65, 0x64, 0x52, 0x65, 0x71, 0x12, 0x24, 0x0a, 0x0d, 0x68, 0x65, 0x72, 0x6f, 0x04, 0x73, 0x74, 0x61, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x74, 0x61,
0x43, 0x6f, 0x69, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c,
0x0d, 0x68, 0x65, 0x72, 0x6f, 0x43, 0x6f, 0x69, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x44, 0x12, 0x16, 0x76, 0x22, 0x33, 0x0a, 0x14, 0x48, 0x65, 0x72, 0x6f, 0x47, 0x65, 0x74, 0x53, 0x70, 0x65, 0x63,
0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x69, 0x66, 0x69, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x04, 0x68, 0x65, 0x72,
0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x72, 0x18, 0x03, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f,
0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x74, 0x61, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x76, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x22, 0x2d, 0x0a, 0x0f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x72,
0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x22, 0x33, 0x0a, 0x14, 0x48, 0x65, 0x61, 0x77, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x72, 0x61,
0x72, 0x6f, 0x47, 0x65, 0x74, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x65, 0x64, 0x52, 0x65, 0x77, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x72, 0x61,
0x73, 0x70, 0x12, 0x1b, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x77, 0x54, 0x79, 0x70, 0x65, 0x22, 0x2a, 0x0a, 0x10, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x72, 0x61,
0x32, 0x07, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x22, 0x77, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x72,
0x7e, 0x0a, 0x0f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x65, 0x6c, 0x48, 0x65, 0x72, 0x6f, 0x50, 0x75, 0x6f, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x65,
0x73, 0x68, 0x12, 0x31, 0x0a, 0x05, 0x68, 0x65, 0x72, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x73, 0x22, 0x2d, 0x0a, 0x0e, 0x48, 0x65, 0x72, 0x6f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50,
0x0b, 0x32, 0x1b, 0x2e, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x65, 0x6c, 0x48, 0x65, 0x72, 0x6f, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1b, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28,
0x75, 0x73, 0x68, 0x2e, 0x48, 0x65, 0x72, 0x6f, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74,
0x68, 0x65, 0x72, 0x6f, 0x73, 0x1a, 0x38, 0x0a, 0x0a, 0x48, 0x65, 0x72, 0x6f, 0x73, 0x45, 0x6e, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22,
0x2d, 0x0a, 0x0f, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x72, 0x61, 0x77, 0x43, 0x61, 0x72, 0x64, 0x52,
0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x72, 0x61, 0x77, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x64, 0x72, 0x61, 0x77, 0x54, 0x79, 0x70, 0x65, 0x22, 0x2a,
0x0a, 0x10, 0x48, 0x65, 0x72, 0x6f, 0x44, 0x72, 0x61, 0x77, 0x43, 0x61, 0x72, 0x64, 0x52, 0x65,
0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x05, 0x52, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x65, 0x73, 0x22, 0x2d, 0x0a, 0x0e, 0x48, 0x65,
0x72, 0x6f, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1b, 0x0a, 0x04,
0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x48,
0x65, 0x72, 0x6f, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70,
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@ -1854,7 +1738,7 @@ func file_hero_hero_msg_proto_rawDescGZIP() []byte {
return file_hero_hero_msg_proto_rawDescData return file_hero_hero_msg_proto_rawDescData
} }
var file_hero_hero_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 36) var file_hero_hero_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 33)
var file_hero_hero_msg_proto_goTypes = []interface{}{ var file_hero_hero_msg_proto_goTypes = []interface{}{
(*HeroInfoReq)(nil), // 0: HeroInfoReq (*HeroInfoReq)(nil), // 0: HeroInfoReq
(*HeroInfoResp)(nil), // 1: HeroInfoResp (*HeroInfoResp)(nil), // 1: HeroInfoResp
@ -1881,46 +1765,41 @@ var file_hero_hero_msg_proto_goTypes = []interface{}{
(*HeroPropertyPush)(nil), // 22: HeroPropertyPush (*HeroPropertyPush)(nil), // 22: HeroPropertyPush
(*HeroLockReq)(nil), // 23: HeroLockReq (*HeroLockReq)(nil), // 23: HeroLockReq
(*HeroLockResp)(nil), // 24: HeroLockResp (*HeroLockResp)(nil), // 24: HeroLockResp
(*HeroAddNewHeroPush)(nil), // 25: HeroAddNewHeroPush (*HeroGetSpecifiedReq)(nil), // 25: HeroGetSpecifiedReq
(*HeroGetSpecifiedReq)(nil), // 26: HeroGetSpecifiedReq (*HeroGetSpecifiedResp)(nil), // 26: HeroGetSpecifiedResp
(*HeroGetSpecifiedResp)(nil), // 27: HeroGetSpecifiedResp (*HeroDrawCardReq)(nil), // 27: HeroDrawCardReq
(*HeroDelHeroPush)(nil), // 28: HeroDelHeroPush (*HeroDrawCardResp)(nil), // 28: HeroDrawCardResp
(*HeroDrawCardReq)(nil), // 29: HeroDrawCardReq (*HeroChangePush)(nil), // 29: HeroChangePush
(*HeroDrawCardResp)(nil), // 30: HeroDrawCardResp nil, // 30: HeroStrengthenUplvReq.ExpCardsEntry
(*HeroChangePush)(nil), // 31: HeroChangePush nil, // 31: HeroPropertyPush.PropertyEntry
nil, // 32: HeroStrengthenUplvReq.ExpCardsEntry nil, // 32: HeroPropertyPush.AddPropertyEntry
nil, // 33: HeroPropertyPush.PropertyEntry (*DBHero)(nil), // 33: DBHero
nil, // 34: HeroPropertyPush.AddPropertyEntry
nil, // 35: HeroDelHeroPush.HerosEntry
(*DBHero)(nil), // 36: DBHero
} }
var file_hero_hero_msg_proto_depIdxs = []int32{ var file_hero_hero_msg_proto_depIdxs = []int32{
36, // 0: HeroInfoResp.base:type_name -> DBHero 33, // 0: HeroInfoResp.base:type_name -> DBHero
36, // 1: HeroListResp.list:type_name -> DBHero 33, // 1: HeroListResp.list:type_name -> DBHero
32, // 2: HeroStrengthenUplvReq.expCards:type_name -> HeroStrengthenUplvReq.ExpCardsEntry 30, // 2: HeroStrengthenUplvReq.expCards:type_name -> HeroStrengthenUplvReq.ExpCardsEntry
36, // 3: HeroStrengthenUplvResp.hero:type_name -> DBHero 33, // 3: HeroStrengthenUplvResp.hero:type_name -> DBHero
7, // 4: HeroStrengthenUpStarReq.hero:type_name -> CostCardData 7, // 4: HeroStrengthenUpStarReq.hero:type_name -> CostCardData
7, // 5: HeroStrengthenUpStarReq.heroRace:type_name -> CostCardData 7, // 5: HeroStrengthenUpStarReq.heroRace:type_name -> CostCardData
36, // 6: HeroStrengthenUpStarResp.hero:type_name -> DBHero 33, // 6: HeroStrengthenUpStarResp.hero:type_name -> DBHero
36, // 7: HeroStrengthenUpSkillResp.hero:type_name -> DBHero 33, // 7: HeroStrengthenUpSkillResp.hero:type_name -> DBHero
36, // 8: HeroResonanceResp.hero:type_name -> DBHero 33, // 8: HeroResonanceResp.hero:type_name -> DBHero
36, // 9: HeroResonanceResp.upStarCard:type_name -> DBHero 33, // 9: HeroResonanceResp.upStarCard:type_name -> DBHero
36, // 10: HeroResonanceResetResp.hero:type_name -> DBHero 33, // 10: HeroResonanceResetResp.hero:type_name -> DBHero
36, // 11: HeroResonanceUseEnergyResp.hero:type_name -> DBHero 33, // 11: HeroResonanceUseEnergyResp.hero:type_name -> DBHero
36, // 12: HeroAwakenResp.hero:type_name -> DBHero 33, // 12: HeroAwakenResp.hero:type_name -> DBHero
36, // 13: HeroChoukaResp.heroes:type_name -> DBHero 33, // 13: HeroChoukaResp.heroes:type_name -> DBHero
33, // 14: HeroPropertyPush.property:type_name -> HeroPropertyPush.PropertyEntry 31, // 14: HeroPropertyPush.property:type_name -> HeroPropertyPush.PropertyEntry
34, // 15: HeroPropertyPush.addProperty:type_name -> HeroPropertyPush.AddPropertyEntry 32, // 15: HeroPropertyPush.addProperty:type_name -> HeroPropertyPush.AddPropertyEntry
36, // 16: HeroLockResp.hero:type_name -> DBHero 33, // 16: HeroLockResp.hero:type_name -> DBHero
36, // 17: HeroAddNewHeroPush.hero:type_name -> DBHero 33, // 17: HeroGetSpecifiedResp.hero:type_name -> DBHero
36, // 18: HeroGetSpecifiedResp.hero:type_name -> DBHero 33, // 18: HeroChangePush.list:type_name -> DBHero
35, // 19: HeroDelHeroPush.heros:type_name -> HeroDelHeroPush.HerosEntry 19, // [19:19] is the sub-list for method output_type
36, // 20: HeroChangePush.list:type_name -> DBHero 19, // [19:19] is the sub-list for method input_type
21, // [21:21] is the sub-list for method output_type 19, // [19:19] is the sub-list for extension type_name
21, // [21:21] is the sub-list for method input_type 19, // [19:19] is the sub-list for extension extendee
21, // [21:21] is the sub-list for extension type_name 0, // [0:19] is the sub-list for field type_name
21, // [21:21] is the sub-list for extension extendee
0, // [0:21] is the sub-list for field type_name
} }
func init() { file_hero_hero_msg_proto_init() } func init() { file_hero_hero_msg_proto_init() }
@ -2231,18 +2110,6 @@ func file_hero_hero_msg_proto_init() {
} }
} }
file_hero_hero_msg_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { file_hero_hero_msg_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroAddNewHeroPush); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_hero_hero_msg_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroGetSpecifiedReq); i { switch v := v.(*HeroGetSpecifiedReq); i {
case 0: case 0:
return &v.state return &v.state
@ -2254,7 +2121,7 @@ func file_hero_hero_msg_proto_init() {
return nil return nil
} }
} }
file_hero_hero_msg_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { file_hero_hero_msg_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroGetSpecifiedResp); i { switch v := v.(*HeroGetSpecifiedResp); i {
case 0: case 0:
return &v.state return &v.state
@ -2266,19 +2133,7 @@ func file_hero_hero_msg_proto_init() {
return nil return nil
} }
} }
file_hero_hero_msg_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { file_hero_hero_msg_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroDelHeroPush); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_hero_hero_msg_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroDrawCardReq); i { switch v := v.(*HeroDrawCardReq); i {
case 0: case 0:
return &v.state return &v.state
@ -2290,7 +2145,7 @@ func file_hero_hero_msg_proto_init() {
return nil return nil
} }
} }
file_hero_hero_msg_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { file_hero_hero_msg_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroDrawCardResp); i { switch v := v.(*HeroDrawCardResp); i {
case 0: case 0:
return &v.state return &v.state
@ -2302,7 +2157,7 @@ func file_hero_hero_msg_proto_init() {
return nil return nil
} }
} }
file_hero_hero_msg_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { file_hero_hero_msg_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HeroChangePush); i { switch v := v.(*HeroChangePush); i {
case 0: case 0:
return &v.state return &v.state
@ -2321,7 +2176,7 @@ func file_hero_hero_msg_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_hero_hero_msg_proto_rawDesc, RawDescriptor: file_hero_hero_msg_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 36, NumMessages: 33,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },

View File

@ -114,7 +114,6 @@ type MainlineGetRewrdReq struct {
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
ChapterId uint32 `protobuf:"varint,1,opt,name=chapterId,proto3" json:"chapterId"` // 章节ID ChapterId uint32 `protobuf:"varint,1,opt,name=chapterId,proto3" json:"chapterId"` // 章节ID
BoxId uint32 `protobuf:"varint,2,opt,name=boxId,proto3" json:"boxId"` // 宝箱ID
} }
func (x *MainlineGetRewrdReq) Reset() { func (x *MainlineGetRewrdReq) Reset() {
@ -156,13 +155,6 @@ func (x *MainlineGetRewrdReq) GetChapterId() uint32 {
return 0 return 0
} }
func (x *MainlineGetRewrdReq) GetBoxId() uint32 {
if x != nil {
return x.BoxId
}
return 0
}
type MainlineGetRewrdResp struct { type MainlineGetRewrdResp struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@ -324,25 +316,24 @@ var file_mainline_mainline_msg_proto_rawDesc = []byte{
0x36, 0x0a, 0x13, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x36, 0x0a, 0x13, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x47, 0x65, 0x74, 0x4c, 0x69,
0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01,
0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e,
0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x49, 0x0a, 0x13, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x33, 0x0a, 0x13, 0x4d, 0x61, 0x69, 0x6e, 0x6c,
0x69, 0x6e, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x77, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x69, 0x6e, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x77, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x1c,
0x0a, 0x09, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0d, 0x52, 0x09, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x0d, 0x52, 0x09, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x37, 0x0a, 0x14,
0x62, 0x6f, 0x78, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x62, 0x6f, 0x78, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x77, 0x72, 0x64,
0x49, 0x64, 0x22, 0x37, 0x0a, 0x14, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x47, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01,
0x74, 0x52, 0x65, 0x77, 0x72, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x64, 0x61, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52,
0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x54, 0x0a, 0x14, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e,
0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x54, 0x0a, 0x14, 0x4d, 0x65, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a,
0x09, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
0x52, 0x09, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x6d,
0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52,
0x0a, 0x6d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x22, 0x38, 0x0a, 0x15, 0x4d,
0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65,
0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x63, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x49, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52,
0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x18, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70,
0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x6d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x49, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x64, 0x22, 0x38, 0x0a, 0x15, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x68, 0x61,
0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x64, 0x61,
0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x44, 0x42, 0x4d, 0x61, 0x69,
0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e,
0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (

View File

@ -123,12 +123,6 @@ message HeroLockResp {
DBHero hero = 1; // DBHero hero = 1; //
} }
//
message HeroAddNewHeroPush {
DBHero hero = 1; //
int32 count = 2; //
}
// //
message HeroGetSpecifiedReq { message HeroGetSpecifiedReq {
int32 heroCoinfigID = 1; // ID int32 heroCoinfigID = 1; // ID
@ -141,10 +135,6 @@ message HeroGetSpecifiedResp {
DBHero hero = 1; // DBHero hero = 1; //
} }
message HeroDelHeroPush {
map<string,int32> heros = 1;
}
// //
message HeroDrawCardReq { message HeroDrawCardReq {
int32 drawType = 1; // drawCardCost表 int32 drawType = 1; // drawCardCost表

View File

@ -14,7 +14,6 @@ message MainlineGetListResp {
// //
message MainlineGetRewrdReq { message MainlineGetRewrdReq {
uint32 chapterId = 1; // ID uint32 chapterId = 1; // ID
uint32 boxId = 2; // ID
} }
message MainlineGetRewrdResp { message MainlineGetRewrdResp {