gm_msg.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  1. package msg
  2. import (
  3. "rocommon"
  4. "rocommon/service"
  5. "rocommon/util"
  6. "roserver/baseserver/model"
  7. model2 "roserver/game/model"
  8. "roserver/serverproto"
  9. "strings"
  10. )
  11. func init() {
  12. serverproto.Handle_GAME_CSGMCommandReq = model.HandleBackendMessage(func(ev rocommon.ProcEvent, cliId model.ClientID) {
  13. msg := ev.Msg().(*serverproto.CSGMCommandReq)
  14. util.DebugF("receive CSGMCommandReq msg=%v", msg)
  15. roleOuter := model2.RoleMag.GetRoleOrKick(cliId, ev)
  16. if roleOuter == nil {
  17. return
  18. }
  19. role := roleOuter.(model2.RoleLogicOuter)
  20. cmdList := strings.Split(msg.GmCmd, " ")
  21. if len(cmdList) <= 0 {
  22. util.DebugF("uid=%v gm command invalid gm=%v", role.(*model2.Role).GetUUid(), msg.GmCmd)
  23. return
  24. }
  25. cmdStr := strings.ToLower(cmdList[0])
  26. switch cmdStr {
  27. case "addres":
  28. if len(cmdList) >= 3 {
  29. resType, _ := model.Str2Num(cmdList[1])
  30. resValue, _ := model.Str2Num(cmdList[2])
  31. roleOuter.(*model2.Role).GetRoleBag().AddItem(int32(resType), int32(resValue),
  32. model2.AddItemST{AddFrom: model2.AddFrom_System, Notify: true})
  33. //switch serverproto.ResType(resType) {
  34. //case serverproto.ResType_Res_Coin:
  35. // fallthrough
  36. //case serverproto.ResType_Res_RoleBaseExp:
  37. // fallthrough
  38. //case serverproto.ResType_Res_RoleJobExp:
  39. // fallthrough
  40. //case serverproto.ResType_Res_HeroBaseExp:
  41. // fallthrough
  42. //case serverproto.ResType_Res_Cruise:
  43. // fallthrough
  44. //case serverproto.ResType_Res_Sprite:
  45. // fallthrough
  46. //case serverproto.ResType_Res_Reslove:
  47. // fallthrough
  48. //case serverproto.ResType_Res_Fashion:
  49. // fallthrough
  50. //case serverproto.ResType_Res_EvilExp:
  51. // fallthrough
  52. //case serverproto.ResType_Res_Guild:
  53. // fallthrough
  54. //case serverproto.ResType_Res_DaoChang100:
  55. // fallthrough
  56. //case serverproto.ResType_Res_PetCoin:
  57. // fallthrough
  58. //case serverproto.ResType_Res_VipExp:
  59. // fallthrough
  60. //case serverproto.ResType_Res_PetExp:
  61. // role.AddRes(int32(resType), model2.AddItemST{ItemCount: int32(resValue)}, true)
  62. // roleOuter.(*model2.Role).BaseChangeNtf()
  63. //default:
  64. // roleOuter.(*model2.Role).GetRoleBag().AddItem(int32(resType), int32(resValue),
  65. // model2.AddItemST{AddFrom: model2.AddFrom_System, Notify: true})
  66. //}
  67. }
  68. case "addhero":
  69. if len(cmdList) >= 2 {
  70. configId, _ := model.Str2Num(cmdList[1])
  71. role.AddHero(int32(configId))
  72. }
  73. case "addequip":
  74. if len(cmdList) >= 3 {
  75. configId, _ := model.Str2Num(cmdList[1])
  76. num, _ := model.Str2Num(cmdList[2])
  77. role.AddEquip(int32(configId), int32(num), true, false)
  78. }
  79. case "studyskill":
  80. if len(cmdList) >= 2 {
  81. heroId, _ := model.Str2Num(cmdList[1])
  82. skillId, _ := model.Str2Num(cmdList[2])
  83. role.SkillLevelUp(int32(heroId), int32(skillId))
  84. }
  85. case "activeskill":
  86. if len(cmdList) >= 2 {
  87. heroId, _ := model.Str2Num(cmdList[1])
  88. skillId, _ := model.Str2Num(cmdList[2])
  89. role.ActiveSkill(int32(heroId), int32(skillId))
  90. }
  91. case "addfashion":
  92. if len(cmdList) >= 2 {
  93. fashionCfgId, _ := model.Str2Num(cmdList[1])
  94. roleOuter.(*model2.Role).GetRoleFashion().AddFashion(int32(fashionCfgId), false)
  95. roleOuter.(*model2.Role).GetRoleFashion().FashionChangeNtf([]int32{int32(fashionCfgId)})
  96. }
  97. case "cleanbag":
  98. roleOuter.(*model2.Role).GetRoleBag().GMClearBag()
  99. case "cleanpet":
  100. roleOuter.(*model2.Role).GetRolePet().GMClearPet()
  101. case "addmail":
  102. if len(cmdList) >= 2 {
  103. mailCfgId, _ := model.Str2Num(cmdList[1])
  104. var itemList = map[int32]int32{}
  105. if len(cmdList) > 2 {
  106. for i := 2; i < len(cmdList); i++ {
  107. res, val := model.Str2Res(cmdList[i])
  108. itemList[int32(res)] = int32(val)
  109. }
  110. }
  111. roleOuter.(*model2.Role).AddMail(int32(mailCfgId), serverproto.MailType_MailType_System, itemList, nil, "", "")
  112. }
  113. case "addmail1":
  114. if len(cmdList) >= 3 {
  115. title := cmdList[1]
  116. content := cmdList[2]
  117. roleOuter.(*model2.Role).AddMail(0, serverproto.MailType_MailType_System, nil, nil, title, content)
  118. }
  119. case "setmap": //设置挑战到的关卡,关卡相关的其他数据不做处理
  120. if len(cmdList) >= 3 {
  121. mapId, _ := model.Str2Num(cmdList[1])
  122. levelId, _ := model.Str2Num(cmdList[2])
  123. roleOuter.(*model2.Role).GetRoleBattle().GMSetMapLevel(uint32(mapId), uint32(levelId))
  124. }
  125. case "signup":
  126. if len(cmdList) >= 2 {
  127. typeId, _ := model.Str2Num(cmdList[1])
  128. if typeId == 1 {
  129. roleOuter.(*model2.Role).GetSignUpInfo()
  130. }
  131. if typeId == 2 {
  132. roleOuter.(*model2.Role).OnSignUp()
  133. }
  134. }
  135. case "setsignday":
  136. if roleOuter.(*model2.Role).GetRoleActivity() != nil {
  137. if len(cmdList) == 2 {
  138. day, _ := model.Str2Num(cmdList[1])
  139. roleOuter.(*model2.Role).GetRoleActivity().SetSignDay(int32(day), -1)
  140. } else if len(cmdList) == 3 {
  141. day, _ := model.Str2Num(cmdList[1])
  142. sec, _ := model.Str2Num(cmdList[2])
  143. roleOuter.(*model2.Role).GetRoleActivity().SetSignDay(int32(day), int32(sec))
  144. }
  145. }
  146. case "testfightpower":
  147. //roleOuter.(*model2.Role).GetRoleFightPower().FashionAttrChange()
  148. case "income": //minutes
  149. if len(cmdList) >= 2 {
  150. incomeTime, _ := model.Str2Num(cmdList[1])
  151. if incomeTime > 0 {
  152. role.(*model2.Role).GetRoleBattle().GMIncome(int32(incomeTime))
  153. }
  154. }
  155. case "closeresetskill":
  156. roleOuter.(*model2.Role).GetRoleBase().RoleData().SkillResetCount = -1
  157. roleOuter.(*model2.Role).GetRoleBase().SetDirty(true)
  158. case "climbingtower":
  159. if len(cmdList) >= 2 {
  160. level, _ := model.Str2Num(cmdList[1])
  161. roleOuter.(*model2.Role).GetRoleTower().SetTowerLevel(int32(level))
  162. }
  163. case "resetboss":
  164. roleOuter.(*model2.Role).GetRoleMap().GmReset()
  165. case "addpet":
  166. if len(cmdList) >= 3 {
  167. petCfgId, _ := model.Str2Num(cmdList[1])
  168. petAddNum, _ := model.Str2Num(cmdList[2])
  169. for idx := 0; idx < petAddNum; idx++ {
  170. roleOuter.(*model2.Role).GetRolePet().AddPet(int32(petCfgId))
  171. }
  172. }
  173. case "addguildactive":
  174. if len(cmdList) >= 2 {
  175. active, _ := model.Str2Num(cmdList[1])
  176. roleOuter.(*model2.Role).GetRoleGuild().GMAddGuildActivity(int32(active))
  177. }
  178. case "guildcd":
  179. roleOuter.(*model2.Role).GetRoleGuild().ClearGuildApplyCD()
  180. case "darkshop":
  181. ackMsg := &serverproto.SCShopRefreshAck{
  182. Error: int32(serverproto.ErrorCode_ERROR_FAIL),
  183. }
  184. bRet := roleOuter.(*model2.Role).GetRoleShop().HandleSpecialShopRefresh(3, ackMsg)
  185. ackMsg.Error = int32(bRet)
  186. roleOuter.(*model2.Role).ReplayGate(ackMsg, true)
  187. case "quickbattle":
  188. roleOuter.(*model2.Role).GetQuickBattleReward()
  189. case "pay":
  190. if len(cmdList) >= 2 {
  191. payAmount, _ := model.Str2Num(cmdList[1])
  192. if payAmount > 0 {
  193. role.(*model2.Role).GMPay(float32(payAmount))
  194. }
  195. }
  196. case "cfgreload":
  197. //model.ReloadConfig()
  198. case "getrushdata":
  199. if len(cmdList) >= 2 {
  200. rushType, _ := model.Str2Num(cmdList[1])
  201. reqMsg := &serverproto.SSGetRushDataReq{
  202. Uid: roleOuter.(*model2.Role).GetUUid(),
  203. }
  204. if rushType == model.Rush_Type_Tower {
  205. reqMsg.RushType = model.Rush_Type_Tower
  206. } else if rushType == model.Rush_Type_Arena {
  207. reqMsg.RushType = model.Rush_Type_Arena
  208. }
  209. model2.SendRankService(reqMsg)
  210. }
  211. case "getrushinfo":
  212. if len(cmdList) >= 2 {
  213. reqMsg := &serverproto.SSOnlineGetRushInfoReq{
  214. Uid: roleOuter.(*model2.Role).GetUUid(),
  215. }
  216. model2.SendRankService(reqMsg)
  217. }
  218. case "getrushreward":
  219. if len(cmdList) >= 2 {
  220. rushType, _ := model.Str2Num(cmdList[1])
  221. reqMsg := &serverproto.SSTestRushRankRewardNtf{
  222. Uid: roleOuter.(*model2.Role).GetUUid(),
  223. RushType: int32(rushType),
  224. }
  225. model2.SendRankService(reqMsg)
  226. }
  227. case "expedition":
  228. if len(cmdList) < 2 {
  229. roleOuter.(*model2.Role).GetRoleBattle().GmExpeditionOpenAll()
  230. } else {
  231. level, _ := model.Str2Num(cmdList[1])
  232. roleOuter.(*model2.Role).GetRoleBattle().GmExpeditionOpen(int32(level))
  233. }
  234. case "expeditionscore":
  235. if len(cmdList) >= 2 {
  236. score, _ := model.Str2Num(cmdList[1])
  237. roleOuter.(*model2.Role).GetRoleBattle().GmExpeditionRankScore(int32(score))
  238. }
  239. case "expeditionfightcount":
  240. if len(cmdList) >= 2 {
  241. count, _ := model.Str2Num(cmdList[1])
  242. roleOuter.(*model2.Role).GetRoleBattle().GmExpeditionFightCount(int32(count))
  243. }
  244. case "statistic":
  245. if len(cmdList) >= 2 {
  246. cheatType, _ := model.Str2Num(cmdList[1])
  247. role.(model2.RoleLogicOuter).OnAntiCheatReq(int32(cheatType))
  248. }
  249. case "giftcode":
  250. reqMsg := &serverproto.CSGiftRewardReq{
  251. Uuid: roleOuter.(*model2.Role).GetUUid(),
  252. }
  253. reqMsg.GiftCode = "C003gfhmvk"
  254. role.(*model2.Role).SendSocial(reqMsg)
  255. case "rushmap":
  256. // roleOuter.(*model2.Role).GetRushMapLevelReward(model.Rush_Type_Map)
  257. case "shop":
  258. if len(cmdList) >= 2 {
  259. goodsid, _ := model.Str2Num(cmdList[1])
  260. ackMsg := &serverproto.SCShopBuyItemAck{
  261. Error: int32(serverproto.ErrorCode_ERROR_FAIL),
  262. GoodsType: 1,
  263. GoodsId: int32(goodsid),
  264. }
  265. bRet, buyTime, buyNum := role.(*model2.Role).GetRoleShop().BuyItem(1, int32(goodsid), 1, ackMsg)
  266. ackMsg.Error = int32(bRet)
  267. ackMsg.CurNum = buyNum
  268. ackMsg.CurBuyTime = buyTime
  269. role.(*model2.Role).ReplayGate(ackMsg, true)
  270. }
  271. case "rj":
  272. tmpRole := roleOuter.(*model2.Role)
  273. if len(cmdList) >= 3 {
  274. heroId, _ := model.Str2Num(cmdList[1])
  275. rjId, _ := model.Str2Num(cmdList[2])
  276. tmpRole.HeroReplaceJob(int32(heroId), int32(rjId))
  277. }
  278. case "guildbattlerank":
  279. reqMsg := &serverproto.SSGuildBattleCPRankReq{}
  280. reqMsg.Uid = roleOuter.(*model2.Role).GetUUid()
  281. reqMsg.GuildId = uint64(role.(model2.RoleLogicOuter).GetRoleGuildId())
  282. role.(*model2.Role).SendGuild(reqMsg)
  283. case "guildbattlecp":
  284. if len(cmdList) >= 2 {
  285. reqMsg := &serverproto.SSGuildBattleGMAddGuildCPReq{}
  286. reqMsg.GuildId = uint64(role.(model2.RoleLogicOuter).GetRoleGuildId())
  287. score, _ := model.Str2Num(cmdList[1])
  288. reqMsg.AddScore = uint32(score)
  289. reqMsg.Uid = role.(*model2.Role).GetUUid()
  290. role.(*model2.Role).SendGuild(reqMsg)
  291. }
  292. case "guildbattlescore":
  293. if len(cmdList) >= 4 {
  294. reqMsg := &serverproto.SSGuildBattleGMAddGuildScoreReq{}
  295. battleIdx, _ := model.Str2Num(cmdList[1])
  296. guildIdx, _ := model.Str2Num(cmdList[2])
  297. score, _ := model.Str2Num(cmdList[3])
  298. reqMsg.BattleIndex = int32(battleIdx)
  299. reqMsg.GuildIndex = int32(guildIdx)
  300. reqMsg.AddScore = int32(score)
  301. role.(*model2.Role).SendGuild(reqMsg)
  302. }
  303. case "guildoperator":
  304. if len(cmdList) >= 2 {
  305. reqMsg := &serverproto.SSGuildBattleGMOperatorReq{}
  306. operator, _ := model.Str2Num(cmdList[1])
  307. if operator != 0 && operator != 1 {
  308. return
  309. }
  310. reqMsg.Operator = int32(operator)
  311. role.(*model2.Role).SendGuild(reqMsg)
  312. }
  313. case "guildreward":
  314. roleOuter.(*model2.Role).GetRoleGuild().GuildBattleOnline()
  315. case "guildleader":
  316. if len(cmdList) >= 2 {
  317. reqMsg := &serverproto.SSGuildBattleGMChangeLeaderReq{}
  318. guildId, err := model.Str2NumU64(cmdList[1])
  319. if err != nil {
  320. return
  321. }
  322. reqMsg.GuildId = guildId
  323. role.(*model2.Role).SendGuild(reqMsg)
  324. }
  325. case "guildkickmember":
  326. if len(cmdList) >= 3 {
  327. reqMsg := &serverproto.SSGuildBattleGMKickMemberReq{}
  328. guildId, err := model.Str2NumU64(cmdList[1])
  329. if err != nil {
  330. return
  331. }
  332. uid, err2 := model.Str2NumU64(cmdList[2])
  333. if err2 != nil {
  334. return
  335. }
  336. reqMsg.GuildId = guildId
  337. reqMsg.Uid = uid
  338. role.(*model2.Role).SendGuild(reqMsg)
  339. }
  340. case "guilddemondamage":
  341. reqMsg := &serverproto.SSGuildBattleGMDemonDamageReq{}
  342. role.(*model2.Role).SendGuild(reqMsg)
  343. case "stopguildbattle":
  344. reqMsg := &serverproto.SSWebGMGuildBattle{}
  345. role.(*model2.Role).SendGuild(reqMsg)
  346. case "resetchat":
  347. //清空禁言
  348. roleOuter.(*model2.Role).BanRoleChat(false, 0, 0)
  349. case "petlevel":
  350. if len(cmdList) >= 4 {
  351. petId, _ := model.Str2Num(cmdList[1])
  352. level, _ := model.Str2Num(cmdList[2])
  353. advLevel, _ := model.Str2Num(cmdList[3])
  354. roleOuter.(*model2.Role).GetRolePet().GMPetLevel(uint32(petId), int32(level), int32(advLevel))
  355. }
  356. case "petskill":
  357. if len(cmdList) >= 4 {
  358. petId, _ := model.Str2Num(cmdList[1])
  359. skillId, _ := model.Str2Num(cmdList[2])
  360. level, _ := model.Str2Num(cmdList[3])
  361. roleOuter.(*model2.Role).GetRolePet().GMPetSkillLevel(uint32(petId), int32(skillId), int32(level))
  362. }
  363. case "skillequiptest":
  364. tmpRole := roleOuter.(*model2.Role)
  365. roleOuter.(*model2.Role).GetRoleBag().AddItem(int32(48), int32(10000),
  366. model2.AddItemST{AddFrom: model2.AddFrom_System, Notify: true})
  367. roleOuter.(*model2.Role).GetRoleBag().AddItem(int32(1), int32(100000),
  368. model2.AddItemST{AddFrom: model2.AddFrom_System, Notify: true})
  369. roleOuter.(*model2.Role).GetRoleBag().AddItem(int32(2), int32(10000),
  370. model2.AddItemST{AddFrom: model2.AddFrom_System, Notify: true})
  371. tmpRole.AddSkillEquip(14200, 1, true, true)
  372. equipId := tmpRole.GetRoleSkillEquip().GetSkillEquipMaxId()
  373. mainHeroId := tmpRole.GetRoleHero().GetMainHero().Id
  374. tmpRole.SkillEquipUp(mainHeroId, equipId, 0)
  375. tmpRole.SkillEquipSlotLevelUp(mainHeroId, 0)
  376. var cost []uint32
  377. cost = append(cost, equipId-1)
  378. tmpRole.SkillEquipStarLevelUp(mainHeroId, equipId, cost)
  379. case "toptower":
  380. tmpRole := roleOuter.(*model2.Role)
  381. crossSSMsg := &serverproto.SSCrossTopTowerForceWinRankUpdateNtf{
  382. FightUid: tmpRole.GetUUid(),
  383. }
  384. tmpRole.SendSocial(crossSSMsg)
  385. case "activitysignin":
  386. if len(cmdList) >= 3 {
  387. day, _ := model.Str2Num(cmdList[1])
  388. activityId, _ := model.Str2Num(cmdList[2])
  389. roleOuter.(*model2.Role).GetRoleActivity().SetActivitySignDay(int32(day), int32(activityId))
  390. }
  391. case "competitiondebug":
  392. //model2.CompetitionMag.GMSendReward()
  393. roleOuter.(*model2.Role).GetRoleCompetition().AddSeasonBoxScore(0, true)
  394. case "combineserver":
  395. roleOuter.(*model2.Role).GMSetCombineServerFinish()
  396. case "reloadcombineserver":
  397. var cfgList []string
  398. cfgList = append(cfgList, "CombinedServiceCfg")
  399. model2.ServerReloadConfig(cfgList)
  400. model2.RoleMag.ServerReloadConfigNtf(cfgList)
  401. case "rechargelimit":
  402. tmpRole := roleOuter.(*model2.Role)
  403. tmpRole.GetRoleRune().GMAddCreditRecharge(0, true)
  404. case "btfirst":
  405. rewardIdx, _ := model.Str2Num(cmdList[1])
  406. tmpRole := roleOuter.(*model2.Role)
  407. tmpRole.PayInfoGet(int32(serverproto.PayGoodsType_EPayType_BTRecharge100), 2, 1, 0, 0)
  408. tmpRole.GetRoleBT().FirstRechargeReward(int32(rewardIdx))
  409. tmpRole.GetRoleBT().Recharge100Reward()
  410. case "test":
  411. //role.AddRes(int32(serverproto.ResType_Res_PetExp), int32(999999), true)
  412. //role.AddRes(int32(serverproto.ResType_Res_PetCoin), int32(999999), true)
  413. //role.AddRes(int32(serverproto.ResType_Res_Rmb), int32(999999), true)
  414. tmpRole := roleOuter.(*model2.Role)
  415. //tmpRole.GetRoleRune().GMAddCreditRecharge(200, false)
  416. //tmpRole.PayInfoGet(1, 1, 1)
  417. //tmpRole.GetRoleBT().GetShopInfo()
  418. resType := int32(serverproto.ResType_Res_BoliShopExp)
  419. resValue := 9999
  420. roleOuter.(*model2.Role).GetRoleBag().AddItem(int32(resType), int32(resValue),
  421. model2.AddItemST{AddFrom: model2.AddFrom_System, Notify: true})
  422. //reqMsg := &serverproto.CSDaoChang100SelfInfoReq{}
  423. //tmpRole.GetDaoChang100SelfPosInfo(reqMsg)
  424. //
  425. //reqMsg1 := &serverproto.CSDaoChang100Req{}
  426. //for idx := 1; idx <= 20; idx++ {
  427. // reqMsg1.PosIdxList = append(reqMsg1.PosIdxList, int32(idx))
  428. //}
  429. //tmpRole.GetDaoChang100PosInfo(reqMsg1.PosIdxList)
  430. //tmpRole.DaoChang100ChallengeReq(1)
  431. //
  432. //reqMsg2 := &serverproto.CSDaoChang100ChallengeResultReq{
  433. // PosIdx: 1,
  434. // BattleResult: false,
  435. // PosUid: 1001, //robotid
  436. //}
  437. //tmpRole.DaoChang100ChallengeResultReq(reqMsg2)
  438. //
  439. //tmpRole.DaoChang100BuyChallengeCount()
  440. //tmpRole.GMCalAttr()
  441. //tmpRole.ExpeditionScoreRankList(1)
  442. //tmpRole.GetRoleBag().AddItem(int32(serverproto.ResType_Res_Rmb), int32(9999999),
  443. // model2.AddItemST{AddFrom: model2.AddFrom_System, Notify: true})
  444. //
  445. //tmpRole.GetRoleDaoChang100().DaoChang100Wheel()
  446. //tmpRole.GetRoleDaoChang100().DaoChang100WheelRefresh()
  447. //tmpRole.GetRoleDaoChang100().DaoChang100WheelOpen()
  448. //tmpRole.GetRoleDaoChang100().DaoChang100WheelReward(true)
  449. //
  450. //tmpRole.GetRoleDaoChang100().DaoChang100WheelClose()
  451. //tmpRole.GetRoleDaoChang100().DaoChang100WheelReward(false)
  452. //tmpRole.GetRoleDaoChang100().DaoChang100WheelReward(false)
  453. //tmpRole.YuanHangTrialViewList()
  454. //if len(cmdList) >= 2 {
  455. // operator, _ := model.Str2Num(cmdList[1])
  456. // switch operator {
  457. // case 1: //发起续航试炼
  458. //
  459. // }
  460. //}
  461. tmpRole.ActivitySummon(94, 5)
  462. tmpRole.OnDrawReq(1, 5)
  463. tmpRole.OnDrawReq(3, 5)
  464. return
  465. //tmpRole.RefreshYuanHangTrialType(false)
  466. tmpRole.GetRoleCross().TopTowerChallengeReq(1)
  467. if len(cmdList) >= 2 {
  468. //cmdId, _ := model.Str2Num(cmdList[1])
  469. model2.TmpLeaseId = service.GetServiceDiscovery().UpdateStateToETCD("teststate", cmdList[1], model2.TmpLeaseId)
  470. }
  471. ssStateMsg := &serverproto.SSGetGServerStateReq{
  472. ServerType: 31,
  473. }
  474. tmpRole.SendSocial(ssStateMsg)
  475. }
  476. })
  477. }