CmdCode.php 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472
  1. <?php
  2. namespace loyalsoft;
  3. /**
  4. * 操作码常量定义
  5. * @author jgao
  6. */
  7. class CmdCode {
  8. //
  9. // <editor-fold defaultstate="collapsed" desc="支付操作码 - 88xx">
  10. /**
  11. * 领取首付礼包
  12. */
  13. const cmd_pay_getfirstpaygift = 8802;
  14. // <editor-fold defaultstate="collapsed" desc="移动支付">
  15. //---------- 移动端 支付API 操作码 ----
  16. /**
  17. * 【移动端】购买物品
  18. */
  19. const cmd_mpay_pay = 8807;
  20. /**
  21. * 【移动端】查询游戏币余额
  22. */
  23. const cmd_mpay_get_balance = 8808;
  24. /**
  25. * 【移动端】购买神秘商城物品
  26. */
  27. const cmd_mpay_buyDynamic = 8809;
  28. /**
  29. * 【移动端】刷新神秘商城物品
  30. */
  31. const cmd_mpay_getDynamic = 8810;
  32. /**
  33. * 【移动端】自助检查异常订单
  34. */
  35. const cmd_mpay_selfCheckOrders = 8811;
  36. /**
  37. * 【移动端】查询付费记录
  38. */
  39. const cmd_mpay_getPayRecords = 8812;
  40. /**
  41. * 临时--正式的要根据具体功能实现
  42. */
  43. const cmd_mpay_PayDeliverGoods = 8813;
  44. /**
  45. * 充值领取奖励
  46. */
  47. const cmd_mpay_UserRechargeDrawPrize = 8814;
  48. /**
  49. * 新的首冲功能
  50. */
  51. const cmd_mpay_NewFirstRecharge = 8815;
  52. //
  53. //
  54. // </editor-fold>
  55. //
  56. // </editor-fold>
  57. //
  58. // <editor-fold defaultstate="collapsed" desc="用户操作码 - 60xx">
  59. /**
  60. * 获取分区列表
  61. */
  62. const cmd_user_getzonelist = 6000;
  63. /**
  64. * 玩家登录指令
  65. */
  66. const cmd_user_loginuserinfo = 6001;
  67. /**
  68. * 常量信息指令
  69. */
  70. const cmd_user_gameconstinfo = 6002;
  71. /**
  72. * 获取连续登录奖励
  73. */
  74. const cmd_user_acceptcontidaysgift = 6003;
  75. /**
  76. * 更新玩家新手引导的进度
  77. */
  78. const cmd_user_registerNewUID = 6004;
  79. /**
  80. * 【测试】机器码登录
  81. */
  82. const cmd_user_testUserLogin = 6005;
  83. /**
  84. * 注册新用户
  85. */
  86. const cmd_user_registerNewRole = 6006;
  87. /**
  88. * 完成新手引导
  89. */
  90. const cmd_user_completeNewbieGuide = 6007;
  91. /**
  92. * [6008] 发放新手引导所需卡牌
  93. */
  94. const cmd_user_setNewbieGuideCards = 6008;
  95. /** [609]
  96. * 新手引导——设置结束标志位
  97. */
  98. const cmd_user_setNewbieGuideOver = 6009;
  99. /**
  100. * [6010] 设置/修改玩家昵称
  101. */
  102. const cmd_user_setNickname = 6010;
  103. /** [6011]
  104. * 修改头像框
  105. */
  106. const cmd_user_SetUserHeadImageBorder = 6011;
  107. /**
  108. * 更换玩家形象
  109. */
  110. const cmd_user_setUserImage = 6012;
  111. /**
  112. * 更换玩家头像
  113. */
  114. const cmd_user_changeUserHeadImg = 6013;
  115. /**
  116. * 6014 初始化火山引擎
  117. */
  118. const cmd_user_stat_initvolc = 6014;
  119. /**
  120. * 6015 收集玩家意见和bug
  121. */
  122. const cmd_user_ctxBack = 6015;
  123. /**
  124. * 6016 查询其他玩家信息
  125. */
  126. const cmd_user_other_info = 6016;
  127. /*
  128. * 删除角色
  129. */
  130. const cmd_user_deleteUserUId = 6017;
  131. // </editor-fold>
  132. //
  133. // <editor-fold defaultstate="collapsed" desc="好友操作码 - 61xx">
  134. /**
  135. * [6101]申请好友
  136. */
  137. const cmd_user_friend_apply = 6101;
  138. /**
  139. * [6102]同意成为好友
  140. */
  141. const cmd_user_friend_accept = 6102;
  142. /**
  143. * [6103]拒绝好友申请->?这里需不需要通知被拒绝人?
  144. */
  145. const cmd_user_friend_deny = 6103;
  146. /**
  147. * [6104]解除好友关系
  148. */
  149. const cmd_user_friend_remove = 6104;
  150. /**
  151. * [6105]拉取好友请求列表
  152. */
  153. const cmd_user_friend_getapplylist = 6105;
  154. // --------- 好友列表 -------------
  155. /**
  156. * [6106] 拉取好友列表
  157. */
  158. const cmd_user_friend_get_list = 6106;
  159. /**
  160. * [6107] 拉取好友详细信息(分批次)
  161. */
  162. const cmd_user_friend_get_infos = 6107;
  163. //----------消息--------------------
  164. /**
  165. * [6108] 给好友发送消息
  166. */
  167. const cmd_user_friend_leave_message = 6108;
  168. /**
  169. * [6109] 拉取最新好友消息
  170. */
  171. const cmd_user_friend_get_message = 6109;
  172. //------------查找----------------------
  173. /**
  174. * [6110]搜索好友
  175. */
  176. const cmd_user_friend_search = 6110;
  177. /**
  178. * [6111]系统推荐好友列表(添加好友面板适用)
  179. */
  180. const cmd_user_friend_suggestList = 6111;
  181. // ---------------刷新--------------------
  182. /**
  183. * [6112] 重新载入好友模块(刷新好友模块,该删除的删除,该添加的添加)
  184. */
  185. const cmd_user_friend_reload = 6112;
  186. /**
  187. * [6113] 拉取好友向我赠送礼物的记录
  188. */
  189. const cmd_user_friend_gift_getlist = 6113;
  190. /**
  191. * [6114] 领取礼物
  192. */
  193. const cmd_user_friend_gift_redraw = 6114;
  194. /**
  195. * [6115]向好友示好(如浇水,送花之类的表现)
  196. */
  197. const cmd_user_friend_gift_send = 6115;
  198. /**
  199. * [6116]请求查看玩家是否有未读信息
  200. */
  201. const cmd_user_friend_unduckmsg = 6116;
  202. /**
  203. * [6117]请求查看玩家公会信息
  204. */
  205. const cmd_user_friend_LookGuildInfo = 6117;
  206. /**
  207. * [6118]请求查看玩家简介
  208. */
  209. const cmd_user_friend_LookFriendInfo = 6118;
  210. // </editor-fold>
  211. //
  212. // <editor-fold defaultstate="collapsed" desc="任务操作码 - 62xx">
  213. /**
  214. * [6201] 任务 - 拉取最新任务信息
  215. */
  216. const cmd_task_getInfo = 6201;
  217. /**
  218. * [6202] 任务 - 领取任务奖励
  219. */
  220. const cmd_task_getReward = 6202;
  221. /**
  222. * [6203]普通任务 - 设置关注任务
  223. */
  224. const cmd_Task_setAttentionTask = 6203;
  225. /**
  226. * [6204]日常任务 - 领取活跃度奖励
  227. */
  228. const cmd_Task_getActiveReward = 6204;
  229. // <editor-fold defaultstate="collapsed" desc="任务卡相关通讯">
  230. //
  231. /**
  232. * 任务卡 - 剧情触发任务结束
  233. */
  234. const cmd_taskCard_PlotFinish = 6210;
  235. /**
  236. * 任务卡 - 剧情回收任务卡
  237. * @deprecated since version 2020.12.12
  238. */
  239. const cmd_taskCard_PlotExchangeTaskCard = 6211;
  240. /**
  241. * 任务卡 - 剧情赠与任务卡
  242. * @deprecated since version 2020.12.12
  243. */
  244. const cmd_taskCard_PlotPresentTaskCard = 6212;
  245. /**
  246. * 任务卡 - 即时结算
  247. * @deprecated since version 2020.12.12
  248. */
  249. const cmd_taskCard_FinishAndReward = 6213;
  250. /**
  251. * 任务卡 - 杀死怪物事件
  252. */
  253. const cmd_taskCard_onKillMonster = 6214;
  254. /**
  255. * 任务卡 - 激活
  256. */
  257. const cmd_taskCard_active = 6215;
  258. /**
  259. * 任务卡 - 领取奖励
  260. */
  261. const cmd_taskCard_reward = 6216;
  262. /**
  263. * 任务卡 - 更新信息
  264. */
  265. const cmd_taskCard_info = 6217;
  266. /**
  267. * 任务步骤 - start/finish action完成
  268. */
  269. const cmd_taskCard_StepActionDone = 6218;
  270. /**
  271. * [6219]任务追踪-设置当前追踪
  272. */
  273. const cmd_Task_setTracingCard = 6219;
  274. /**
  275. * [6220] 任务步骤 - 回档重置
  276. */
  277. const cmd_task_StepFallBack = 6220;
  278. //
  279. // </editor-fold>
  280. // <editor-fold defaultstate="collapsed" desc="任务卡商城">
  281. //
  282. /**
  283. * 任务卡商城 - 开启商店
  284. */
  285. const cmd_taskcard_shop_open = 6231;
  286. /**
  287. * 任务卡商城 - 购买
  288. */
  289. const cmd_taskcard_shop_buy = 6232;
  290. /**
  291. * 任务卡商城 - 手动刷新
  292. */
  293. const cmd_taskcard_shop_refresh = 6233;
  294. //
  295. // </editor-fold>
  296. // </editor-fold>
  297. //
  298. // <editor-fold defaultstate="collapsed" desc="英雄操作码 - 63xx">
  299. /**
  300. * 英雄 - 升级
  301. * ::= 消耗金币和碎片进行升级
  302. */
  303. const cmd_hero_levelup = 6301;
  304. /**
  305. * 英雄 - 加上装备
  306. */
  307. const cmd_hero_equip = 6302;
  308. /**
  309. * 英雄 - 卸下装备
  310. */
  311. const cmd_hero_unequip = 6303;
  312. /**
  313. * 英雄 - 升阶 :: 消耗碎片
  314. */
  315. const cmd_hero_stageup = 6304;
  316. /**
  317. * 英雄- 升星
  318. */
  319. const cmd_hero_upstar = 6305;
  320. /**
  321. * 英雄- 更改锁定状态
  322. */
  323. const cmd_hero_changelockstate = 6306;
  324. /**
  325. * 英雄- 更改好友支援状态
  326. */
  327. const cmd_hero_changefirendbackup = 6307;
  328. /**
  329. * 英雄---获得 一个英雄
  330. */
  331. const cmd_hero_gethero = 6308;
  332. /**
  333. * 英雄的突破升级
  334. */
  335. const cmd_hero_strength = 6309;
  336. /**
  337. * 英雄的解锁好感度
  338. */
  339. const cmd_hero_openFavor = 6310;
  340. /**
  341. * 英雄的分解获得好感度晶石
  342. */
  343. const cmd_hero_separate = 6311;
  344. /**
  345. * 购买玩家可以收集的英雄的数量上限
  346. */
  347. const cmd_hero_buyCollectHeroLimtCount = 6312;
  348. /**
  349. * 更改好友支援
  350. */
  351. const cmd_hero_changefriendsupport = 6313;
  352. /**
  353. * 英雄的技能升级
  354. */
  355. const cmd_hero_upgradeSkillLevel = 6314;
  356. /**
  357. * 存储队伍配置
  358. */
  359. const cmd_hero_saveHeroTeamConfig = 6315;
  360. /**
  361. * 拉取英雄评论列表
  362. */
  363. const cmd_hero_GetDiscuss = 6316;
  364. /**
  365. * 对英雄发表评论
  366. */
  367. const cmd_hero_PostDiscuss = 6317;
  368. /**
  369. * 给某条评论点赞
  370. */
  371. const cmd_hero_PraiseDiscuss = 6318;
  372. /**
  373. * 删除对某个英雄的评论
  374. */
  375. const cmd_hero_DeleteDiscuss = 6319;
  376. /**
  377. * 给某个英雄打分
  378. */
  379. const cmd_hero_scoreit = 6320;
  380. /**
  381. * 购买英雄
  382. */
  383. const cmd_hero_buyHero = 6321;
  384. /**
  385. * 英雄神血升级
  386. */
  387. const cmd_hero_upGodBlood = 6322;
  388. /**
  389. * 英雄碎片 先解锁 再购买
  390. */
  391. const cmd_hero_unlockByPieces = 6323;
  392. /**
  393. * 英雄技能 - 解锁技能
  394. */
  395. const cmd_hero_unlockSkill = 6324;
  396. /**
  397. * 英雄技能 - 一键升级
  398. */
  399. const cmd_hero_skillLevel_onekeyupgrade = 6325;
  400. /**
  401. * 升星
  402. */
  403. const cmd_hero_StrengthenStar = 6326;
  404. /**
  405. * 言灵升级
  406. */
  407. const cmd_hero_YanlinUpLevel = 6327;
  408. /**
  409. * 唤灵师突破
  410. */
  411. const cmd_hero_tupo = 6328;
  412. /**
  413. * 言灵替换
  414. */
  415. const cmd_hero_YanLingReplace = 6329;
  416. /**
  417. * 召唤言灵
  418. */
  419. const cmd_hero_zhaohuanYanLing = 6330;
  420. // </editor-fold>
  421. //
  422. // <editor-fold defaultstate="collapsed" desc="仓库操作码 - 64xx">
  423. /**
  424. * 放入仓库
  425. */
  426. const cmd_store_put = 6401;
  427. /**
  428. * 卖出单个物品
  429. */
  430. const cmd_store_singleSell = 6402;
  431. /**
  432. * 从背包批量卖出物品
  433. */
  434. const cmd_store_mutliSell = 6403;
  435. /**
  436. * 使用物品
  437. */
  438. const cmd_store_use = 6404;
  439. /**
  440. * 刷新仓库
  441. */
  442. const cmd_store_refresh = 6405;
  443. /**
  444. * 删除道具
  445. */
  446. const cmd_store_delItem = 6406;
  447. /**
  448. * 测试用的命令
  449. */
  450. const cmd_store_Testcmd = 6407;
  451. /**
  452. * 升级某个装备
  453. */
  454. const cmd_store_ItemUpgrade = 6408;
  455. /**
  456. * 宝石合成
  457. */
  458. //const cmd_store_GemCompose = 6409;
  459. /**
  460. * 英雄穿装备
  461. */
  462. const cmd_store_WearEquip = 6410;
  463. /**
  464. * 英雄脱装备
  465. */
  466. const cmd_store_UnWieldEquip = 6411;
  467. /**
  468. * 购买增加物品栏格子数
  469. */
  470. const cmd_store_AddMaxPacketNum = 6412;
  471. /**
  472. * 装备熔炼
  473. */
  474. const cmd_store_MeltEquip = 6413;
  475. /* * *
  476. * 碎片合成
  477. */
  478. const cmd_store_PiecesCompose = 6415;
  479. /**
  480. * 装备言灵
  481. */
  482. const cmd_store_WearYanling = 6416;
  483. /**
  484. * 卸下言灵
  485. */
  486. const cmd_store_UnWieldYanling = 6417;
  487. /**
  488. * 言灵召唤书碎片合成召唤书
  489. */
  490. const cmd_store_mergeYanlingbook = 6418;
  491. /**
  492. * 利用言灵召唤书召唤言灵
  493. */
  494. const cmd_store_callyanling = 6419;
  495. /**
  496. * 言灵进阶---废弃
  497. */
  498. const cmd_store_yanling_upgrade = 6420;
  499. /**
  500. * 武器升级
  501. */
  502. const cmd_store__weapon_upgrade = 6421;
  503. /**
  504. * 武器突破
  505. */
  506. const cmd_store__weapon_tupo = 6422;
  507. /**
  508. * 武器替换
  509. */
  510. const cmd_store_weaponReplace = 6423;
  511. /**
  512. * 宝石合成
  513. */
  514. const cmd_store_GemCompose = 6424;
  515. /**
  516. * 宝石研究等级提升
  517. */
  518. const cmd_store_GemResearchLvUp = 6425;
  519. /**
  520. * 宝石镶嵌
  521. */
  522. const cmd_store_GemSet = 6426;
  523. /*
  524. * 宝石卸下
  525. */
  526. const cmd_store_GemRemove = 6427;
  527. /**
  528. * 背包扩展
  529. */
  530. const cmd_store_unlockStore = 6428;
  531. /**
  532. * 购买武器
  533. */
  534. public const cmd_store_buyWeapon = 6429;
  535. /**
  536. * 获取商店武器信息
  537. */
  538. public const cmd_store_getShopWeapon = 6430;
  539. /**
  540. *
  541. */
  542. public const cmd_store_buySupplies = 6431;
  543. /*
  544. * 扩容第三个格子
  545. */
  546. public const cmd_store_expandStorage = 6432;
  547. /*
  548. * 放入和移除储物间
  549. */
  550. public const cmd_store_changeStorage = 6433;
  551. /**
  552. * 添加、移除血瓶
  553. */
  554. public const cmd_store_changeBettleItem = 6434;
  555. /*
  556. * 道具全部使用,删除
  557. */
  558. public const cmd_store_useBettleItem = 6435;
  559. /**
  560. * 血瓶或蓝瓶自动使用条件设置
  561. */
  562. public const cmd_store_setBettleItemUseVal = 6436;
  563. /**
  564. * 删除所有类型道具
  565. */
  566. public const cmd_store_removeItem = 6437;
  567. /*
  568. * 击杀怪,唤灵师获得的信息加成,暂时是经验
  569. */
  570. public const cmd_store_killMosterAddData = 6438;
  571. /**
  572. * 查看新道具
  573. */
  574. public const cmd_store_refreshItem = 6439;
  575. /**
  576. * 言灵进化
  577. */
  578. public const cmd_store_yanlingEvolve = 6440;
  579. /**
  580. * 一键进化
  581. */
  582. public const cmd_store_yanlingEvolve_overall = 6441;
  583. /**
  584. *
  585. */
  586. public const cmd_store_setBettleItemAutoVal = 6442;
  587. /**
  588. * 从前段更新到后端战力值
  589. */
  590. public const cmd_store_UpdateFightPower = 6443;
  591. // </editor-fold>
  592. //
  593. // <editor-fold defaultstate="collapsed" desc="活动操作码 - 65xx">
  594. // /**
  595. // * 开服七日活动 - 刷新任务列表
  596. // */
  597. // const active_day7_gettasklist = 6500;
  598. //
  599. /**
  600. * 活动 - 等级奖励: 领取奖励
  601. */
  602. const active_levelgift_getReward = 6501;
  603. //
  604. /**
  605. * 开服七日活动 - 领取奖励
  606. */
  607. const active_day7_drawreward = 6502;
  608. /**
  609. * 查询开服时间
  610. */
  611. const active_getzonePublicTs = 6503;
  612. /**
  613. * 查询当日在线时长信息
  614. */
  615. const active_getTodayOnlineInfos = 6504;
  616. // /**
  617. // * 神庙抽奖
  618. // */
  619. // const active_shenmiaoDrawPrize = 6505;
  620. // /**
  621. // * 普通任务 - 完成任务
  622. // */
  623. // const Task_completetask = 6506;
  624. //
  625. // /**
  626. // * 普通任务 - 领取奖励
  627. // */
  628. // const Task_drawreward = 6507;
  629. /**
  630. * 领取体力,间隔领取体力
  631. */
  632. const Task_Tili = 6508;
  633. // /**
  634. // * 活动 - 抽奖
  635. // */
  636. // const lottery = 6509;
  637. //
  638. // /**
  639. // * 新手引导 - 活动-抽奖
  640. // */
  641. // const lottery_demo = 6510;
  642. //
  643. // /**
  644. // * 活动 - 抽奖 领取保底奖励
  645. // */
  646. // const lottery_baodi = 6511;
  647. /**
  648. * 活动 - 凭兑换码领取礼包
  649. */
  650. const active_token_drawReward = 6512;
  651. /**
  652. * 活动 - 领取在线礼包
  653. */
  654. const active_draw_onlinegift = 6513;
  655. /**
  656. * 活动 - 领取全服注册礼包
  657. */
  658. const active_draw_reggift = 6514;
  659. /**
  660. * 活动 - 加油站: 领取在线赠送体力
  661. */
  662. const active_presentTili = 6515;
  663. /**
  664. * 活动 - 查询当前全服注册人数
  665. */
  666. const active_get_regnum = 6516;
  667. /**
  668. * 开宝箱-减少冷却时间
  669. */
  670. const box_SubCoolDown = 6517;
  671. /**
  672. * 购买体力
  673. */
  674. const active_BuyTili = 6520;
  675. /**
  676. * 刷新当前体力
  677. */
  678. const active_GetCurTili = 6521;
  679. /**
  680. * 金币兑换活动
  681. */
  682. const active_goldexchange = 6522;
  683. // </editor-fold>
  684. //
  685. // <editor-fold defaultstate="collapsed" desc="排行榜操作码 - 66xx">
  686. //
  687. /**
  688. * 排行榜 - 战斗力榜
  689. */
  690. const rank_fpower_getRank = 6601;
  691. /**
  692. * 排行榜 - 领取战斗力榜突破奖励
  693. */
  694. const rank_fpower_drawReward = 6602;
  695. /**
  696. * 排行榜 - 查询玩家战斗力排名
  697. */
  698. const rank_fpower_getRanking = 6603;
  699. /**
  700. * 排行榜 - 查询各榜榜一
  701. */
  702. const rank_getTop1 = 6604;
  703. /**
  704. * 排行榜 - 通关榜
  705. */
  706. //const rank_passgate_getrank = 6605;
  707. /**
  708. * 排行榜--玩家等级榜信息
  709. */
  710. const rank_playerlevel_getrank = 6605;
  711. /**
  712. * 排行榜 - 领取通关榜突破奖励
  713. */
  714. const rank_passgate_drawReward = 6606;
  715. /**
  716. * 排行榜 - 查询战力突破记录
  717. */
  718. const rank_fpower_breachLog = 6607;
  719. /**
  720. * 排行榜 - 查询通关榜突破记录
  721. */
  722. const rank_passgate_breachLog = 6608;
  723. //
  724. // </editor-fold>
  725. //
  726. // <editor-fold defaultstate="collapsed" desc="邮件操作码 - 67xx开始(ope)">
  727. /**
  728. * [6701]获取邮件列表
  729. */
  730. const cmd_email_questEmailList = 6701;
  731. /**
  732. * [6702]读取/打开一封邮件
  733. */
  734. const cmd_email_readAEmail = 6702;
  735. /**
  736. * [6703] 邮件 - 领取附件
  737. */
  738. const cmd_email_DrawReward = 6703;
  739. /**
  740. * [6704] 邮件 - 领取全部附件奖励
  741. */
  742. const cmd_email_DrawAllRewards = 6704;
  743. /**
  744. * [6705] 删除邮件——所有已读(不包含已读未领取状态的邮件)
  745. */
  746. const cmd_mail_delMailReaded = 6705;
  747. /**
  748. * [6706] 请求邮件未处理的数量(未打开邮件时检查邮件图标应该提示啥)
  749. */
  750. const cmd_mail_notReadMailNum = 6706;
  751. /**
  752. * [6707] 发送测试用道具
  753. */
  754. const cmd_mail_sendTestItems = 6707;
  755. // const
  756. // </editor-fold>
  757. //
  758. // <editor-fold defaultstate="collapsed" desc="战斗操作码 - 68xx">
  759. /**
  760. * 关卡战斗-预掉落计算
  761. */
  762. const cmd_fight_arenas_preFight = 6800;
  763. /**
  764. * 关卡战斗
  765. */
  766. const cmd_fight_arenasfight = 6801;
  767. /**
  768. * 关卡扫荡
  769. */
  770. const cmd_fight_arenassweep = 6802;
  771. /**
  772. * 挑战 - 获得挑战对手的信息
  773. */
  774. const cmd_fight_GetChallengeAdversaryInfo = 6803;
  775. /**
  776. * 挑战 - 记录挑战结果
  777. */
  778. const cmd_fight_LogChallengeResult = 6804;
  779. /**
  780. * 挑战 - 拉取挑战记录
  781. */
  782. const cmd_fight_GetChallengeLog = 6805;
  783. /**
  784. * 剧情 - 领取剧情任务章节星数奖励
  785. */
  786. const cmd_fight_GetArenasActiveReward = 6806;
  787. //
  788. // <editor-fold defaultstate="collapsed" desc=" 竞技场 681x ">
  789. //
  790. /**
  791. * 竞技场 主界面信息
  792. */
  793. const cmd_fight_pvp_maininfo = 6810;
  794. /**
  795. * 竞技场 刷新对手列表
  796. */
  797. const cmd_fight_pvp_refresh = 6811;
  798. /**
  799. * 竞技场 挑战xx.
  800. */
  801. const cmd_fight_pvp_pk = 6812;
  802. /**
  803. * 竞技场 调整阵容
  804. */
  805. const cmd_fight_pvp_setTeam = 6813;
  806. /**
  807. * 竞技场 购买挑战票
  808. */
  809. const cmd_fight_pvp_buyTicket = 6814;
  810. /**
  811. * 竞技场 查看榜单
  812. */
  813. const cmd_fight_pvp_getrank = 6815;
  814. /**
  815. * 竞技场 查询战报
  816. */
  817. const cmd_fight_pvp_getLog = 6816;
  818. //
  819. // </editor-fold>
  820. //
  821. // <editor-fold defaultstate="collapsed" desc=" 竞技商店 682x ">
  822. /**
  823. * 竞技场 商店 主界面信息
  824. */
  825. const cmd_fight_pvpShop_getMainInfo = 6820;
  826. /**
  827. * 竞技场 商店 购买道具
  828. */
  829. const cmd_fight_pvpShop_buy = 6821;
  830. /**
  831. * 竞技场 商店 刷新道具
  832. */
  833. const cmd_fight_pvpShop_refresh = 6822;
  834. // </editor-fold>
  835. //
  836. // <editor-fold defaultstate="collapsed" desc="世界boss战">
  837. /**
  838. * 世界boss - 进入
  839. */
  840. const fight_worldBoss_enter = 6831;
  841. /**
  842. * 世界boss - 上报伤害
  843. */
  844. const fight_worldBoss_addDamage = 6832;
  845. /**
  846. * 世界boss - 查询boss剩余血量
  847. */
  848. const fight_worldBoss_refresh_blood = 6833;
  849. /**
  850. * 世界boss - 查询当前伤害榜(前x名)
  851. */
  852. const fight_worldBoss_refresh_rank = 6834;
  853. /**
  854. * 世界boss - 查询boss输出伤害列表
  855. */
  856. const fight_worldBoss_refresh_bossSkill = 6835;
  857. //
  858. // // </editor-fold>
  859. //
  860. // <editor-fold defaultstate="collapsed" desc="无尽塔">
  861. /**
  862. * 无尽塔 - 查询当前层
  863. */
  864. const fight_endlessTower_Get = 6841;
  865. /**
  866. * 无尽塔 - 前进
  867. */
  868. const fight_endlessTower_Up = 6842;
  869. /**
  870. * 无尽塔 - 领取成就奖励
  871. */
  872. const fight_endlessTower_drawreward = 6843;
  873. /**
  874. * 满血复活
  875. */
  876. const fight_fullBlood = 6844;
  877. // </editor-fold>
  878. //
  879. // </editor-fold>
  880. //
  881. // <editor-fold defaultstate="collapsed" desc="系统操作码 - 69xx">
  882. /**
  883. * 获取系统消息列表
  884. */
  885. const cmd_system_getsysmessage = 6901;
  886. /**
  887. * 系统日志上报
  888. */
  889. const cmd_system_logreport = 6902;
  890. /**
  891. * 客户端心跳包
  892. */
  893. const cmd_system_clienttick = 6903;
  894. /**
  895. * 玩家发送系统消息
  896. */
  897. const cmd_system_userSendsysmessage = 6904;
  898. // </editor-fold>
  899. //
  900. //
  901. // <editor-fold defaultstate="collapsed" desc="公会操作码 - 70xx开始(ope)">
  902. /**
  903. * 【会员】查询自己的公会信息
  904. */
  905. const cmd_guild_getUserGuildInfo = 7000;
  906. /**
  907. * 查询公会列表
  908. */
  909. const cmd_guild_getList = 7001;
  910. /**
  911. * 查询 推荐公会列表
  912. */
  913. const cmd_guild_refuseGuildCupScore = 7002;
  914. /**
  915. * 搜索 公会
  916. */
  917. const cmd_guild_searchGuildByID = 7003;
  918. /**
  919. * 创建公会
  920. */
  921. const cmd_guild_create = 7004;
  922. /**
  923. * 申请加入
  924. */
  925. const cmd_guild_apply = 7005;
  926. /**
  927. * 一键加入
  928. */
  929. const cmd_guild_QuickIn = 7006;
  930. /**
  931. * 请求公会信息
  932. */
  933. const cmd_guild_GetGuildInfo = 7007;
  934. /**
  935. * 编辑
  936. */
  937. const cmd_guild_modifyDeclare = 7008;
  938. /**
  939. * 解散
  940. */
  941. const cmd_guild_dismiss = 7009;
  942. /**
  943. * 开除
  944. */
  945. const cmd_guild_fireMember = 7010;
  946. /**
  947. * 审批
  948. */
  949. const cmd_guild_approve = 7011;
  950. /**
  951. * 转让副会长
  952. */
  953. //const cmd_guild_transferChair = 7012;
  954. /**
  955. * 设置副会长
  956. */
  957. const cmd_guild_setPriceChairman = 7013;
  958. /**
  959. * 获取成员信息
  960. */
  961. const cmd_guild_getGuildMembers = 7014;
  962. /**
  963. * 设置 干部职位
  964. */
  965. const cmd_guild_setOfficer = 7015;
  966. /**
  967. * 退会
  968. */
  969. const cmd_guild_quit = 7016;
  970. /**
  971. * 发起弹劾
  972. */
  973. const cmd_guild_InitiateAccuse = 7017;
  974. /**
  975. * 同意弹劾
  976. */
  977. const cmd_guild_Accuse = 7018;
  978. /**
  979. * 会长取消本次弹劾
  980. */
  981. const cmd_guild_ChairmanCancelAccuse = 7019;
  982. /**
  983. * 申请者玩家简介
  984. */
  985. const cmd_guild_ApplyUserIntro = 7020;
  986. /**
  987. * 发起捐献
  988. */
  989. const cmd_guild_requestDonate = 7021;
  990. /**
  991. * 捐献
  992. */
  993. const cmd_guild_donate = 7022;
  994. /**
  995. * 捐献数据刷新
  996. */
  997. const cmd_guild_donateInfoRefresh = 7023;
  998. /**
  999. * 购买捐献度 礼包
  1000. */
  1001. const cmd_guild_buyDonateGift = 7024;
  1002. /**
  1003. * 购买公会钻石 礼包
  1004. */
  1005. const cmd_guild_buyGuildCashGift = 7025;
  1006. /**
  1007. * 公会公告
  1008. */
  1009. const cmd_guild_announcement = 7026;
  1010. /**
  1011. * 公会邮件
  1012. */
  1013. const cmd_guild_noticeMail = 7027;
  1014. /**
  1015. * 【公会战】 邀请成员战斗
  1016. */
  1017. const cmd_guild_vsFightInvite = 7028;
  1018. /**
  1019. * 【公会战】 取消邀请
  1020. */
  1021. const cmd_guild_cancelInvite = 7029;
  1022. /**
  1023. * 【公会战】 接受,战斗
  1024. */
  1025. const cmd_guild_fight = 7030;
  1026. // const
  1027. // </editor-fold>
  1028. //
  1029. // <editor-fold defaultstate="collapsed" desc="商城 - 71xx ">
  1030. //
  1031. /**
  1032. * 限购礼包主界面
  1033. */
  1034. const shop_limit_maininfo = 7101;
  1035. /**
  1036. * 购买限购礼包
  1037. */
  1038. const shop_limit_buy = 7102;
  1039. /**
  1040. * 月卡信息
  1041. */
  1042. const shop_monthlyVIP_Info = 7103;
  1043. /**
  1044. * 购买月卡
  1045. */
  1046. const shop_monthlyVIP_Buy = 7104;
  1047. /**
  1048. * 获取每日特惠信息
  1049. */
  1050. const shop_getDaliySpecial = 7105;
  1051. /*
  1052. * 获取充值返利信息
  1053. */
  1054. const shop_getRechargeRebate = 7106;
  1055. /**
  1056. * 日常商城购买
  1057. */
  1058. const shop_dailyShopBuy = 7107;
  1059. //
  1060. // </editor-fold>
  1061. //
  1062. // <editor-fold defaultstate="collapsed" desc="事件操作码 - 72xx">
  1063. /**
  1064. * 查询角标事件通知
  1065. */
  1066. const cmd_event_GetNotifications = 7201;
  1067. /**
  1068. * 清理指定角标
  1069. */
  1070. const cmd_event_ClearNotifications = 7202;
  1071. // </editor-fold>
  1072. // <editor-fold defaultstate="collapsed" desc="学院操作码 - 73xx">
  1073. /**
  1074. * 激活某任务卡
  1075. */
  1076. const cmd_college_ActiveTaskCard = 7301;
  1077. /**
  1078. * 领取任务卡奖励
  1079. */
  1080. const cmd_college_ReceiveCollegeReward = 7302;
  1081. /**
  1082. * 领取课程奖励
  1083. */
  1084. const cmd_college_ReceiveCourseReward = 7303;
  1085. /**
  1086. * 积分兑换道具
  1087. */
  1088. const cmd_college_ScoreExchangeItem = 7304;
  1089. /**
  1090. *
  1091. */
  1092. const cmd_college_GetCollegeData = 7305;
  1093. /**
  1094. *
  1095. */
  1096. //const cmd_college_GetCollegeTaskCardData = 7305;
  1097. // </editor-fold>
  1098. // <editor-fold defaultstate="collapsed" desc="Auction操作码 - 74xx">
  1099. /**
  1100. * 获取全部拍卖信息
  1101. */
  1102. const cmd_Auction_GetUserAuctionItemsInfo = 7401;
  1103. /**
  1104. * 玩家上架拍品信息
  1105. */
  1106. const cmd_Auction_GetUserUploadAuctionItems = 7402;
  1107. /**
  1108. * 玩家竞拍信息
  1109. */
  1110. const cmd_Auction_GetUserAuctionItems = 7403;
  1111. /**
  1112. * 一口价
  1113. */
  1114. const cmd_Auction_BuyoutPrice = 7404;
  1115. /**
  1116. * 取消出售
  1117. */
  1118. const cmd_Auction_CancelAuction = 7405;
  1119. /**
  1120. * 上传拍品
  1121. */
  1122. const cmd_Auction_UploadAuctionItems = 7406;
  1123. /**
  1124. * 竞拍
  1125. */
  1126. const cmd_Auction_UserAuctionBidItem = 7407;
  1127. // </editor-fold>
  1128. //
  1129. // <editor-fold defaultstate="collapsed" desc="地图操作码75xx">
  1130. //
  1131. /**
  1132. * 进入据点
  1133. */
  1134. public const map_EnterFootHold = 7501;
  1135. /**
  1136. * 开启传送阵
  1137. */
  1138. public const map_FixUpTransmission = 7502;
  1139. /**
  1140. * 更新探索度
  1141. */
  1142. public const map_UpdateExplorerationProgress = 7503;
  1143. /**
  1144. * 解锁据点
  1145. */
  1146. public const map_UnlockMap = 7504;
  1147. // /**
  1148. // * 获取100_0_0_时间戳这些已经解锁保存了的数据
  1149. // */
  1150. // public const map_getUnlockInfoList = 7505;
  1151. /**
  1152. * 100_0_0_时间戳保存
  1153. */
  1154. public const map_unlockInfoSva = 7505;
  1155. /*
  1156. * 领取探索奖励
  1157. */
  1158. public const map_reviceExplorerReward = 7506;
  1159. /*
  1160. * 回城券使用
  1161. */
  1162. public const map_huichengQuanUse = 7507;
  1163. /*
  1164. * 回城券传送阵消失
  1165. */
  1166. public const map_huichengQuanEnd = 7508;
  1167. //
  1168. // // </editor-fold>
  1169. //
  1170. // <editor-fold defaultstate="collapsed" desc=" 反射方法 ">
  1171. /**
  1172. * 辅助方法, 将所有错误码信息转换到CSV文本中.
  1173. * 用法: 先在本文件中用ctrl + H 全部替换掉 'c onst ' -> 's tatic $'
  1174. * 然后再调用本方法,即可在同目录下生成ErrCode.txt, 里面包含了所需信息.
  1175. * @throws \Exception
  1176. * @author gwang
  1177. */
  1178. static function L() {
  1179. $class = new \ReflectionClass(__CLASS__); # 建立这个类的反射对象
  1180. $properties = $class->getProperties(\ReflectionProperty::IS_STATIC); # 拉取所有静态属性
  1181. $fileName = __DIR__ . "/" . str_replace('\\', '.', __CLASS__) . ".txt"; # 输出文件名
  1182. $fd = fopen($fileName, "w");
  1183. if (false === $fd) { # 打开文件失败
  1184. throw new \Exception("打开$fileName 失败");
  1185. }
  1186. foreach ($properties as &$p) {
  1187. $d = preg_replace('/[\*|\/|\s+]/', '', $p->getDocComment()); # 处理下注释
  1188. $type = (strpos($p->getName(), 'err') === false ? 0 : 1); # errorType: 0 继续, 1 重启
  1189. $n = fputs($fd, $p->getName() . ";" . $p->getValue() . ";$type;$d" . PHP_EOL); # 写入文件
  1190. if (false === $n) { # 写入时失败
  1191. throw new Exception("写入$fileName 时失败");
  1192. }
  1193. }
  1194. fclose($fd);
  1195. }
  1196. // </editor-fold>
  1197. }