gm_msg.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  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), false)
  124. }
  125. case "sethardmap": //设置挑战到的关卡,关卡相关的其他数据不做处理
  126. if len(cmdList) >= 3 {
  127. mapId, _ := model.Str2Num(cmdList[1])
  128. levelId, _ := model.Str2Num(cmdList[2])
  129. roleOuter.(*model2.Role).GetRoleBattle().GMSetMapLevel(uint32(mapId), uint32(levelId), true)
  130. }
  131. case "signup":
  132. if len(cmdList) >= 2 {
  133. typeId, _ := model.Str2Num(cmdList[1])
  134. if typeId == 1 {
  135. roleOuter.(*model2.Role).GetSignUpInfo()
  136. }
  137. if typeId == 2 {
  138. roleOuter.(*model2.Role).OnSignUp()
  139. }
  140. }
  141. case "setsignday":
  142. if roleOuter.(*model2.Role).GetRoleActivity() != nil {
  143. if len(cmdList) == 2 {
  144. day, _ := model.Str2Num(cmdList[1])
  145. roleOuter.(*model2.Role).GetRoleActivity().SetSignDay(int32(day), -1)
  146. } else if len(cmdList) == 3 {
  147. day, _ := model.Str2Num(cmdList[1])
  148. sec, _ := model.Str2Num(cmdList[2])
  149. roleOuter.(*model2.Role).GetRoleActivity().SetSignDay(int32(day), int32(sec))
  150. }
  151. }
  152. case "testfightpower":
  153. //roleOuter.(*model2.Role).GetRoleFightPower().FashionAttrChange()
  154. case "income": //minutes
  155. if len(cmdList) >= 2 {
  156. incomeTime, _ := model.Str2Num(cmdList[1])
  157. if incomeTime > 0 {
  158. role.(*model2.Role).GetRoleBattle().GMIncome(int32(incomeTime))
  159. }
  160. }
  161. case "closeresetskill":
  162. roleOuter.(*model2.Role).GetRoleBase().RoleData().SkillResetCount = -1
  163. roleOuter.(*model2.Role).GetRoleBase().SetDirty(true)
  164. case "climbingtower":
  165. if len(cmdList) >= 2 {
  166. level, _ := model.Str2Num(cmdList[1])
  167. roleOuter.(*model2.Role).GetRoleTower().SetTowerLevel(int32(level))
  168. }
  169. case "resetboss":
  170. roleOuter.(*model2.Role).GetRoleMap().GmReset()
  171. case "addpet":
  172. if len(cmdList) >= 3 {
  173. petCfgId, _ := model.Str2Num(cmdList[1])
  174. petAddNum, _ := model.Str2Num(cmdList[2])
  175. for idx := 0; idx < petAddNum; idx++ {
  176. roleOuter.(*model2.Role).GetRolePet().AddPet(int32(petCfgId))
  177. }
  178. }
  179. case "addguildactive":
  180. if len(cmdList) >= 2 {
  181. active, _ := model.Str2Num(cmdList[1])
  182. roleOuter.(*model2.Role).GetRoleGuild().GMAddGuildActivity(int32(active))
  183. }
  184. case "guildcd":
  185. roleOuter.(*model2.Role).GetRoleGuild().ClearGuildApplyCD()
  186. case "darkshop":
  187. ackMsg := &serverproto.SCShopRefreshAck{
  188. Error: int32(serverproto.ErrorCode_ERROR_FAIL),
  189. }
  190. bRet := roleOuter.(*model2.Role).GetRoleShop().HandleSpecialShopRefresh(3, ackMsg)
  191. ackMsg.Error = int32(bRet)
  192. roleOuter.(*model2.Role).ReplayGate(ackMsg, true)
  193. case "quickbattle":
  194. roleOuter.(*model2.Role).GetQuickBattleReward()
  195. case "pay":
  196. if len(cmdList) >= 2 {
  197. payAmount, _ := model.Str2Num(cmdList[1])
  198. if payAmount > 0 {
  199. role.(*model2.Role).GMPay(float32(payAmount))
  200. }
  201. }
  202. case "cfgreload":
  203. //model.ReloadConfig()
  204. case "getrushdata":
  205. if len(cmdList) >= 2 {
  206. rushType, _ := model.Str2Num(cmdList[1])
  207. reqMsg := &serverproto.SSGetRushDataReq{
  208. Uid: roleOuter.(*model2.Role).GetUUid(),
  209. }
  210. if rushType == model.Rush_Type_Tower {
  211. reqMsg.RushType = model.Rush_Type_Tower
  212. } else if rushType == model.Rush_Type_Arena {
  213. reqMsg.RushType = model.Rush_Type_Arena
  214. }
  215. model2.SendRankService(reqMsg)
  216. }
  217. case "getrushinfo":
  218. if len(cmdList) >= 2 {
  219. reqMsg := &serverproto.SSOnlineGetRushInfoReq{
  220. Uid: roleOuter.(*model2.Role).GetUUid(),
  221. }
  222. model2.SendRankService(reqMsg)
  223. }
  224. case "getrushreward":
  225. if len(cmdList) >= 2 {
  226. rushType, _ := model.Str2Num(cmdList[1])
  227. reqMsg := &serverproto.SSTestRushRankRewardNtf{
  228. Uid: roleOuter.(*model2.Role).GetUUid(),
  229. RushType: int32(rushType),
  230. }
  231. model2.SendRankService(reqMsg)
  232. }
  233. case "expedition":
  234. if len(cmdList) < 2 {
  235. roleOuter.(*model2.Role).GetRoleBattle().GmExpeditionOpenAll()
  236. } else {
  237. level, _ := model.Str2Num(cmdList[1])
  238. roleOuter.(*model2.Role).GetRoleBattle().GmExpeditionOpen(int32(level))
  239. }
  240. case "expeditionscore":
  241. if len(cmdList) >= 2 {
  242. score, _ := model.Str2Num(cmdList[1])
  243. roleOuter.(*model2.Role).GetRoleBattle().GmExpeditionRankScore(int32(score))
  244. }
  245. case "expeditionfightcount":
  246. if len(cmdList) >= 2 {
  247. count, _ := model.Str2Num(cmdList[1])
  248. roleOuter.(*model2.Role).GetRoleBattle().GmExpeditionFightCount(int32(count))
  249. }
  250. case "statistic":
  251. if len(cmdList) >= 2 {
  252. cheatType, _ := model.Str2Num(cmdList[1])
  253. role.(model2.RoleLogicOuter).OnAntiCheatReq(int32(cheatType))
  254. }
  255. case "giftcode":
  256. reqMsg := &serverproto.CSGiftRewardReq{
  257. Uuid: roleOuter.(*model2.Role).GetUUid(),
  258. }
  259. reqMsg.GiftCode = "C003gfhmvk"
  260. role.(*model2.Role).SendSocial(reqMsg)
  261. case "rushmap":
  262. // roleOuter.(*model2.Role).GetRushMapLevelReward(model.Rush_Type_Map)
  263. case "shop":
  264. if len(cmdList) >= 2 {
  265. goodsid, _ := model.Str2Num(cmdList[1])
  266. ackMsg := &serverproto.SCShopBuyItemAck{
  267. Error: int32(serverproto.ErrorCode_ERROR_FAIL),
  268. GoodsType: 1,
  269. GoodsId: int32(goodsid),
  270. }
  271. bRet, buyTime, buyNum := role.(*model2.Role).GetRoleShop().BuyItem(1, int32(goodsid), 1, ackMsg)
  272. ackMsg.Error = int32(bRet)
  273. ackMsg.CurNum = buyNum
  274. ackMsg.CurBuyTime = buyTime
  275. role.(*model2.Role).ReplayGate(ackMsg, true)
  276. }
  277. case "rj":
  278. tmpRole := roleOuter.(*model2.Role)
  279. if len(cmdList) >= 3 {
  280. heroId, _ := model.Str2Num(cmdList[1])
  281. rjId, _ := model.Str2Num(cmdList[2])
  282. tmpRole.HeroReplaceJob(int32(heroId), int32(rjId))
  283. }
  284. case "guildbattlerank":
  285. reqMsg := &serverproto.SSGuildBattleCPRankReq{}
  286. reqMsg.Uid = roleOuter.(*model2.Role).GetUUid()
  287. reqMsg.GuildId = uint64(role.(model2.RoleLogicOuter).GetRoleGuildId())
  288. role.(*model2.Role).SendGuild(reqMsg)
  289. case "guildbattlecp":
  290. if len(cmdList) >= 2 {
  291. reqMsg := &serverproto.SSGuildBattleGMAddGuildCPReq{}
  292. reqMsg.GuildId = uint64(role.(model2.RoleLogicOuter).GetRoleGuildId())
  293. score, _ := model.Str2Num(cmdList[1])
  294. reqMsg.AddScore = uint32(score)
  295. reqMsg.Uid = role.(*model2.Role).GetUUid()
  296. role.(*model2.Role).SendGuild(reqMsg)
  297. }
  298. case "guildbattlescore":
  299. if len(cmdList) >= 4 {
  300. reqMsg := &serverproto.SSGuildBattleGMAddGuildScoreReq{}
  301. battleIdx, _ := model.Str2Num(cmdList[1])
  302. guildIdx, _ := model.Str2Num(cmdList[2])
  303. score, _ := model.Str2Num(cmdList[3])
  304. reqMsg.BattleIndex = int32(battleIdx)
  305. reqMsg.GuildIndex = int32(guildIdx)
  306. reqMsg.AddScore = int32(score)
  307. role.(*model2.Role).SendGuild(reqMsg)
  308. }
  309. case "guildoperator":
  310. if len(cmdList) >= 2 {
  311. reqMsg := &serverproto.SSGuildBattleGMOperatorReq{}
  312. operator, _ := model.Str2Num(cmdList[1])
  313. if operator != 0 && operator != 1 {
  314. return
  315. }
  316. reqMsg.Operator = int32(operator)
  317. role.(*model2.Role).SendGuild(reqMsg)
  318. }
  319. case "guildreward":
  320. roleOuter.(*model2.Role).GetRoleGuild().GuildBattleOnline()
  321. case "guildleader":
  322. if len(cmdList) >= 2 {
  323. reqMsg := &serverproto.SSGuildBattleGMChangeLeaderReq{}
  324. guildId, err := model.Str2NumU64(cmdList[1])
  325. if err != nil {
  326. return
  327. }
  328. reqMsg.GuildId = guildId
  329. role.(*model2.Role).SendGuild(reqMsg)
  330. }
  331. case "guildkickmember":
  332. if len(cmdList) >= 3 {
  333. reqMsg := &serverproto.SSGuildBattleGMKickMemberReq{}
  334. guildId, err := model.Str2NumU64(cmdList[1])
  335. if err != nil {
  336. return
  337. }
  338. uid, err2 := model.Str2NumU64(cmdList[2])
  339. if err2 != nil {
  340. return
  341. }
  342. reqMsg.GuildId = guildId
  343. reqMsg.Uid = uid
  344. role.(*model2.Role).SendGuild(reqMsg)
  345. }
  346. case "guilddemondamage":
  347. reqMsg := &serverproto.SSGuildBattleGMDemonDamageReq{}
  348. role.(*model2.Role).SendGuild(reqMsg)
  349. case "stopguildbattle":
  350. reqMsg := &serverproto.SSWebGMGuildBattle{}
  351. role.(*model2.Role).SendGuild(reqMsg)
  352. case "resetchat":
  353. //清空禁言
  354. roleOuter.(*model2.Role).BanRoleChat(false, 0, 0)
  355. case "petlevel":
  356. if len(cmdList) >= 4 {
  357. petId, _ := model.Str2Num(cmdList[1])
  358. level, _ := model.Str2Num(cmdList[2])
  359. advLevel, _ := model.Str2Num(cmdList[3])
  360. roleOuter.(*model2.Role).GetRolePet().GMPetLevel(uint32(petId), int32(level), int32(advLevel))
  361. }
  362. case "petskill":
  363. if len(cmdList) >= 4 {
  364. petId, _ := model.Str2Num(cmdList[1])
  365. skillId, _ := model.Str2Num(cmdList[2])
  366. level, _ := model.Str2Num(cmdList[3])
  367. roleOuter.(*model2.Role).GetRolePet().GMPetSkillLevel(uint32(petId), int32(skillId), int32(level))
  368. }
  369. case "skillequiptest":
  370. tmpRole := roleOuter.(*model2.Role)
  371. roleOuter.(*model2.Role).GetRoleBag().AddItem(int32(48), int32(10000),
  372. model2.AddItemST{AddFrom: model2.AddFrom_System, Notify: true})
  373. roleOuter.(*model2.Role).GetRoleBag().AddItem(int32(1), int32(100000),
  374. model2.AddItemST{AddFrom: model2.AddFrom_System, Notify: true})
  375. roleOuter.(*model2.Role).GetRoleBag().AddItem(int32(2), int32(10000),
  376. model2.AddItemST{AddFrom: model2.AddFrom_System, Notify: true})
  377. tmpRole.AddSkillEquip(14200, 1, true, true)
  378. equipId := tmpRole.GetRoleSkillEquip().GetSkillEquipMaxId()
  379. mainHeroId := tmpRole.GetRoleHero().GetMainHero().Id
  380. tmpRole.SkillEquipUp(mainHeroId, equipId, 0)
  381. tmpRole.SkillEquipSlotLevelUp(mainHeroId, 0)
  382. var cost []uint32
  383. cost = append(cost, equipId-1)
  384. tmpRole.SkillEquipStarLevelUp(mainHeroId, equipId, cost)
  385. case "toptower":
  386. tmpRole := roleOuter.(*model2.Role)
  387. crossSSMsg := &serverproto.SSCrossTopTowerForceWinRankUpdateNtf{
  388. FightUid: tmpRole.GetUUid(),
  389. }
  390. tmpRole.SendSocial(crossSSMsg)
  391. case "activitysignin":
  392. if len(cmdList) >= 3 {
  393. day, _ := model.Str2Num(cmdList[1])
  394. activityId, _ := model.Str2Num(cmdList[2])
  395. roleOuter.(*model2.Role).GetRoleActivity().SetActivitySignDay(int32(day), int32(activityId))
  396. }
  397. case "competitiondebug":
  398. //model2.CompetitionMag.GMSendReward()
  399. roleOuter.(*model2.Role).GetRoleCompetition().AddSeasonBoxScore(0, true)
  400. case "combineserver":
  401. roleOuter.(*model2.Role).GMSetCombineServerFinish()
  402. case "reloadcombineserver":
  403. var cfgList []string
  404. cfgList = append(cfgList, "CombinedServiceCfg")
  405. model2.ServerReloadConfig(cfgList)
  406. model2.RoleMag.ServerReloadConfigNtf(cfgList)
  407. case "rechargelimit":
  408. tmpRole := roleOuter.(*model2.Role)
  409. tmpRole.GetRoleRune().GMAddCreditRecharge(0, true)
  410. case "btfirst":
  411. rewardIdx, _ := model.Str2Num(cmdList[1])
  412. tmpRole := roleOuter.(*model2.Role)
  413. tmpRole.PayInfoGet(int32(serverproto.PayGoodsType_EPayType_BTRecharge100), 2, 1, 0, 0, 0, "")
  414. tmpRole.GetRoleBT().FirstRechargeReward(int32(rewardIdx))
  415. tmpRole.GetRoleBT().Recharge100Reward()
  416. case "test":
  417. //role.AddRes(int32(serverproto.ResType_Res_PetExp), int32(999999), true)
  418. //role.AddRes(int32(serverproto.ResType_Res_PetCoin), int32(999999), true)
  419. //role.AddRes(int32(serverproto.ResType_Res_Rmb), int32(999999), true)
  420. tmpRole := roleOuter.(*model2.Role)
  421. //tmpRole.GetRoleRune().GMAddCreditRecharge(200, false)
  422. //tmpRole.PayInfoGet(1, 1, 1)
  423. //tmpRole.GetRoleBT().GetShopInfo()
  424. resType := int32(serverproto.ResType_Res_BoliShopExp)
  425. resValue := 9999
  426. roleOuter.(*model2.Role).GetRoleBag().AddItem(int32(resType), int32(resValue),
  427. model2.AddItemST{AddFrom: model2.AddFrom_System, Notify: true})
  428. //reqMsg := &serverproto.CSDaoChang100SelfInfoReq{}
  429. //tmpRole.GetDaoChang100SelfPosInfo(reqMsg)
  430. //
  431. //reqMsg1 := &serverproto.CSDaoChang100Req{}
  432. //for idx := 1; idx <= 20; idx++ {
  433. // reqMsg1.PosIdxList = append(reqMsg1.PosIdxList, int32(idx))
  434. //}
  435. //tmpRole.GetDaoChang100PosInfo(reqMsg1.PosIdxList)
  436. //tmpRole.DaoChang100ChallengeReq(1)
  437. //
  438. //reqMsg2 := &serverproto.CSDaoChang100ChallengeResultReq{
  439. // PosIdx: 1,
  440. // BattleResult: false,
  441. // PosUid: 1001, //robotid
  442. //}
  443. //tmpRole.DaoChang100ChallengeResultReq(reqMsg2)
  444. //
  445. //tmpRole.DaoChang100BuyChallengeCount()
  446. //tmpRole.GMCalAttr()
  447. //tmpRole.ExpeditionScoreRankList(1)
  448. //tmpRole.GetRoleBag().AddItem(int32(serverproto.ResType_Res_Rmb), int32(9999999),
  449. // model2.AddItemST{AddFrom: model2.AddFrom_System, Notify: true})
  450. //
  451. //tmpRole.GetRoleDaoChang100().DaoChang100Wheel()
  452. //tmpRole.GetRoleDaoChang100().DaoChang100WheelRefresh()
  453. //tmpRole.GetRoleDaoChang100().DaoChang100WheelOpen()
  454. //tmpRole.GetRoleDaoChang100().DaoChang100WheelReward(true)
  455. //
  456. //tmpRole.GetRoleDaoChang100().DaoChang100WheelClose()
  457. //tmpRole.GetRoleDaoChang100().DaoChang100WheelReward(false)
  458. //tmpRole.GetRoleDaoChang100().DaoChang100WheelReward(false)
  459. //tmpRole.YuanHangTrialViewList()
  460. //if len(cmdList) >= 2 {
  461. // operator, _ := model.Str2Num(cmdList[1])
  462. // switch operator {
  463. // case 1: //发起续航试炼
  464. //
  465. // }
  466. //}
  467. tmpRole.ActivitySummon(94, 5)
  468. tmpRole.OnDrawReq(1, 5)
  469. tmpRole.OnDrawReq(3, 5)
  470. return
  471. //tmpRole.RefreshYuanHangTrialType(false)
  472. tmpRole.GetRoleCross().TopTowerChallengeReq(1)
  473. if len(cmdList) >= 2 {
  474. //cmdId, _ := model.Str2Num(cmdList[1])
  475. model2.TmpLeaseId = service.GetServiceDiscovery().UpdateStateToETCD("teststate", cmdList[1], model2.TmpLeaseId)
  476. }
  477. ssStateMsg := &serverproto.SSGetGServerStateReq{
  478. ServerType: 31,
  479. }
  480. tmpRole.SendSocial(ssStateMsg)
  481. }
  482. })
  483. }