CmdCode.php 23 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169
  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_buygoods = 8801;
  14. /**
  15. * 领取首付礼包
  16. */
  17. const cmd_pay_getfirstpaygift = 8802;
  18. /**
  19. * 领取黄钻新手礼包
  20. */
  21. const cmd_pay_getvipnewergift = 8803;
  22. /**
  23. * 领取黄钻每日礼包
  24. */
  25. const cmd_pay_getvipdaygift = 8804;
  26. /**
  27. * 领取开通包月礼包
  28. */
  29. const cmd_pay_getvipopengift = 8805;
  30. /**
  31. * 客户端确认支付发货
  32. */
  33. const cmd_pay_confirmdelivery = 8806;
  34. // <editor-fold defaultstate="collapsed" desc="移动支付">
  35. //---------- 移动端 支付API 操作码 ----
  36. /**
  37. * 【移动端】购买物品
  38. */
  39. const cmd_mpay_pay = 8807;
  40. /**
  41. * 【移动端】查询游戏币余额
  42. */
  43. const cmd_mpay_get_balance = 8808;
  44. /**
  45. * 【移动端】购买神秘商城物品
  46. */
  47. const cmd_mpay_buyDynamic = 8809;
  48. /**
  49. * 【移动端】刷新神秘商城物品
  50. */
  51. const cmd_mpay_getDynamic = 8810;
  52. /**
  53. * 【移动端】自助检查异常订单
  54. */
  55. const cmd_mpay_selfCheckOrders = 8811;
  56. /**
  57. * 【移动端】查询付费记录
  58. */
  59. const cmd_mpay_getPayRecords = 8812;
  60. //
  61. //
  62. // </editor-fold>
  63. //
  64. // </editor-fold>
  65. //
  66. // <editor-fold defaultstate="collapsed" desc="用户操作码 - 60xx">
  67. /**
  68. * 获取分区列表
  69. */
  70. const cmd_user_getzonelist = 6000;
  71. /**
  72. * 玩家登录指令
  73. */
  74. const cmd_user_loginuserinfo = 6001;
  75. /**
  76. * 常量信息指令
  77. */
  78. const cmd_user_gameconstinfo = 6002;
  79. /**
  80. * 获取连续登录奖励
  81. */
  82. const cmd_user_acceptcontidaysgift = 6003;
  83. /**
  84. * 更新玩家新手引导的进度
  85. */
  86. const cmd_user_registerNewUID = 6004;
  87. /**
  88. * 【测试】机器码登录
  89. */
  90. const cmd_user_testUserLogin = 6005;
  91. /**
  92. * 注册新用户
  93. */
  94. const cmd_user_registerNewRole = 6006;
  95. /**
  96. * 完成新手引导
  97. */
  98. const cmd_user_completeNewbieGuide = 6007;
  99. /**
  100. * [6008] 发放新手引导所需卡牌
  101. */
  102. const cmd_user_setNewbieGuideCards = 6008;
  103. /** [609]
  104. * 新手引导——设置结束标志位
  105. */
  106. const cmd_user_setNewbieGuideOver = 6009;
  107. /**
  108. * [6010] 设置/修改玩家昵称
  109. */
  110. const cmd_user_setNickname = 6010;
  111. /** [6011]
  112. * 修改头像框
  113. */
  114. const cmd_user_SetUserHeadImageBorder = 6011;
  115. /**
  116. * 更换玩家形象
  117. */
  118. const cmd_user_setUserImage = 6012;
  119. /**
  120. * 更换玩家头像
  121. */
  122. const cmd_user_changeUserHeadImg = 6013;
  123. // </editor-fold>
  124. //
  125. // <editor-fold defaultstate="collapsed" desc="好友操作码 - 61xx">
  126. /**
  127. * [6101]申请好友
  128. */
  129. const cmd_user_friend_apply = 6101;
  130. /**
  131. * [6102]同意成为好友
  132. */
  133. const cmd_user_friend_accept = 6102;
  134. /**
  135. * [6103]拒绝好友申请->?这里需不需要通知被拒绝人?
  136. */
  137. const cmd_user_friend_deny = 6103;
  138. /**
  139. * [6104]解除好友关系
  140. */
  141. const cmd_user_friend_remove = 6104;
  142. /**
  143. * [6105]拉取好友请求列表
  144. */
  145. const cmd_user_friend_getapplylist = 6105;
  146. // --------- 好友列表 -------------
  147. /**
  148. * [6106] 拉取好友列表
  149. */
  150. const cmd_user_friend_get_list = 6106;
  151. /**
  152. * [6107] 拉取好友详细信息(分批次)
  153. */
  154. const cmd_user_friend_get_infos = 6107;
  155. //----------消息--------------------
  156. /**
  157. * [6108] 给好友发送消息
  158. */
  159. const cmd_user_friend_leave_message = 6108;
  160. /**
  161. * [6109] 拉取最新好友消息
  162. */
  163. const cmd_user_friend_get_message = 6109;
  164. //------------查找----------------------
  165. /**
  166. * [6110]搜索好友
  167. */
  168. const cmd_user_friend_search = 6110;
  169. /**
  170. * [6111]系统推荐好友列表(添加好友面板适用)
  171. */
  172. const cmd_user_friend_suggestList = 6111;
  173. // ---------------刷新--------------------
  174. /**
  175. * [6112] 重新载入好友模块(刷新好友模块,该删除的删除,该添加的添加)
  176. */
  177. const cmd_user_friend_reload = 6112;
  178. /**
  179. * [6113] 拉取好友向我赠送礼物的记录
  180. */
  181. const cmd_user_friend_gift_getlist = 6113;
  182. /**
  183. * [6114] 领取礼物
  184. */
  185. const cmd_user_friend_gift_redraw = 6114;
  186. /**
  187. * [6115]向好友示好(如浇水,送花之类的表现)
  188. */
  189. const cmd_user_friend_gift_send = 6115;
  190. /**
  191. * [6116]请求查看玩家是否有未读信息
  192. */
  193. const cmd_user_friend_unduckmsg = 6116;
  194. /**
  195. * [6117]请求查看玩家公会信息
  196. */
  197. const cmd_user_friend_LookGuildInfo = 6117;
  198. /**
  199. * [6118]请求查看玩家简介
  200. */
  201. const cmd_user_friend_LookFriendInfo = 6118;
  202. // </editor-fold>
  203. //
  204. // <editor-fold defaultstate="collapsed" desc="任务操作码 - 62xx">
  205. /**
  206. * [6201] 任务 - 拉取最新任务信息
  207. */
  208. const cmd_task_getInfo = 6201;
  209. /**
  210. * [6202] 任务 - 领取任务奖励
  211. */
  212. const cmd_task_getReward = 6202;
  213. /**
  214. * [6203]普通任务 - 设置关注任务
  215. */
  216. const cmd_Task_setAttentionTask = 6203;
  217. /**
  218. * [6204]日常任务 - 领取活跃度奖励
  219. */
  220. const cmd_Task_getActiveReward = 6204;
  221. // <editor-fold defaultstate="collapsed" desc="任务卡相关通讯">
  222. //
  223. /**
  224. * 任务卡 - 剧情触发任务结束
  225. */
  226. const cmd_taskCard_PlotFinish = 6210;
  227. /**
  228. * 任务卡 - 剧情回收任务卡
  229. * @deprecated since version 2020.12.12
  230. */
  231. const cmd_taskCard_PlotExchangeTaskCard = 6211;
  232. /**
  233. * 任务卡 - 剧情赠与任务卡
  234. * @deprecated since version 2020.12.12
  235. */
  236. const cmd_taskCard_PlotPresentTaskCard = 6212;
  237. /**
  238. * 任务卡 - 即时结算
  239. * @deprecated since version 2020.12.12
  240. */
  241. const cmd_taskCard_FinishAndReward = 6213;
  242. /**
  243. * 任务卡 - 杀死怪物事件
  244. */
  245. const cmd_taskCard_onKillMonster = 6214;
  246. /**
  247. * 任务卡 - 激活
  248. */
  249. const cmd_taskCard_active = 6215;
  250. /**
  251. * 任务卡 - 领取奖励
  252. */
  253. const cmd_taskCard_reward = 6216;
  254. /**
  255. * 任务卡 - 更新信息
  256. */
  257. const cmd_taskCard_info = 6217;
  258. /**
  259. * 任务步骤 - start/finish action完成
  260. */
  261. const cmd_taskCard_StepActionDone = 6218;
  262. //
  263. // </editor-fold>
  264. // <editor-fold defaultstate="collapsed" desc="任务卡商城">
  265. //
  266. /**
  267. * 任务卡商城 - 开启商店
  268. */
  269. const cmd_taskcard_shop_open = 6231;
  270. /**
  271. * 任务卡商城 - 购买
  272. */
  273. const cmd_taskcard_shop_buy = 6232;
  274. /**
  275. * 任务卡商城 - 手动刷新
  276. */
  277. const cmd_taskcard_shop_refresh = 6233;
  278. //
  279. // </editor-fold>
  280. // </editor-fold>
  281. //
  282. // <editor-fold defaultstate="collapsed" desc="英雄操作码 - 63xx">
  283. /**
  284. * 英雄 - 升级
  285. * ::= 消耗金币和碎片进行升级
  286. */
  287. const cmd_hero_levelup = 6301;
  288. /**
  289. * 英雄 - 加上装备
  290. */
  291. const cmd_hero_equip = 6302;
  292. /**
  293. * 英雄 - 卸下装备
  294. */
  295. const cmd_hero_unequip = 6303;
  296. /**
  297. * 英雄 - 升阶 :: 消耗碎片
  298. */
  299. const cmd_hero_stageup = 6304;
  300. /**
  301. * 英雄- 升星
  302. */
  303. const cmd_hero_upstar = 6305;
  304. /**
  305. * 英雄- 更改锁定状态
  306. */
  307. const cmd_hero_changelockstate = 6306;
  308. /**
  309. * 英雄- 更改好友支援状态
  310. */
  311. const cmd_hero_changefirendbackup = 6307;
  312. /**
  313. * 英雄---获得 一个英雄
  314. */
  315. const cmd_hero_gethero = 6308;
  316. /**
  317. * 英雄的突破升级
  318. */
  319. const cmd_hero_strength = 6309;
  320. /**
  321. * 英雄的解锁好感度
  322. */
  323. const cmd_hero_openFavor = 6310;
  324. /**
  325. * 英雄的分解获得好感度晶石
  326. */
  327. const cmd_hero_separate = 6311;
  328. /**
  329. * 购买玩家可以收集的英雄的数量上限
  330. */
  331. const cmd_hero_buyCollectHeroLimtCount = 6312;
  332. /**
  333. * 更改好友支援
  334. */
  335. const cmd_hero_changefriendsupport = 6313;
  336. /**
  337. * 英雄的技能升级
  338. */
  339. const cmd_hero_upgradeSkillLevel = 6314;
  340. /**
  341. * 存储队伍配置
  342. */
  343. const cmd_hero_saveHeroTeamConfig = 6315;
  344. /**
  345. * 拉取英雄评论列表
  346. */
  347. const cmd_hero_GetDiscuss = 6316;
  348. /**
  349. * 对英雄发表评论
  350. */
  351. const cmd_hero_PostDiscuss = 6317;
  352. /**
  353. * 给某条评论点赞
  354. */
  355. const cmd_hero_PraiseDiscuss = 6318;
  356. /**
  357. * 删除对某个英雄的评论
  358. */
  359. const cmd_hero_DeleteDiscuss = 6319;
  360. /**
  361. * 给某个英雄打分
  362. */
  363. const cmd_hero_scoreit = 6320;
  364. /**
  365. * 购买英雄
  366. */
  367. const cmd_hero_buyHero = 6321;
  368. /**
  369. * 英雄神血升级
  370. */
  371. const cmd_hero_upGodBlood = 6322;
  372. /**
  373. * 英雄碎片 先解锁 再购买
  374. */
  375. const cmd_hero_unlockByPieces = 6323;
  376. /**
  377. * 英雄技能 - 解锁技能
  378. */
  379. const cmd_hero_unlockSkill = 6324;
  380. /**
  381. * 英雄技能 - 一键升级
  382. */
  383. const cmd_hero_skillLevel_onekeyupgrade = 6325;
  384. /**
  385. * 升星
  386. */
  387. const cmd_hero_StrengthenStar = 6326;
  388. /**
  389. * 升级
  390. */
  391. const cmd_hero_YanlinUpLevel = 6327;
  392. /**
  393. * 突破
  394. */
  395. const cmd_hero_tupo = 6328;
  396. // </editor-fold>
  397. //
  398. // <editor-fold defaultstate="collapsed" desc="仓库操作码 - 64xx">
  399. /**
  400. * 放入仓库
  401. */
  402. const cmd_store_put = 6401;
  403. /**
  404. * 卖出单个物品
  405. */
  406. const cmd_store_singleSell = 6402;
  407. /**
  408. * 从背包批量卖出物品
  409. */
  410. const cmd_store_mutliSell = 6403;
  411. /**
  412. * 使用物品
  413. */
  414. const cmd_store_use = 6404;
  415. /**
  416. * 刷新仓库
  417. */
  418. const cmd_store_refresh = 6405;
  419. /**
  420. * 删除道具
  421. */
  422. const cmd_store_delItem = 6406;
  423. /**
  424. * 测试用的命令
  425. */
  426. const cmd_store_Testcmd = 6407;
  427. /**
  428. * 升级某个装备
  429. */
  430. const cmd_store_ItemUpgrade = 6408;
  431. /**
  432. * 宝石合成
  433. */
  434. const cmd_store_GemCompose = 6409;
  435. /**
  436. * 英雄穿装备
  437. */
  438. const cmd_store_WearEquip = 6410;
  439. /**
  440. * 英雄脱装备
  441. */
  442. const cmd_store_UnWieldEquip = 6411;
  443. /**
  444. * 购买增加物品栏格子数
  445. */
  446. const cmd_store_AddMaxPacketNum = 6412;
  447. /**
  448. * 装备熔炼
  449. */
  450. const cmd_store_MeltEquip = 6413;
  451. /* * *
  452. * 碎片合成
  453. */
  454. const cmd_store_PiecesCompose = 6415;
  455. /**
  456. * 装备言灵
  457. */
  458. const cmd_store_WearYanling = 6416;
  459. /**
  460. * 卸下言灵
  461. */
  462. const cmd_store_UnWieldYanling = 6417;
  463. /**
  464. * 言灵召唤书碎片合成召唤书
  465. */
  466. const cmd_store_mergeYanlingbook = 6418;
  467. /**
  468. * 利用言灵召唤书召唤言灵
  469. */
  470. const cmd_store_callyanling = 6419;
  471. /**
  472. * 言灵进阶
  473. */
  474. const cmd_store_yanling_upgrade = 6420;
  475. // </editor-fold>
  476. //
  477. // <editor-fold defaultstate="collapsed" desc="活动操作码 - 65xx">
  478. // /**
  479. // * 开服七日活动 - 刷新任务列表
  480. // */
  481. // const active_day7_gettasklist = 6500;
  482. //
  483. // /**
  484. // * 开服7日活动 - 完成任务
  485. // */
  486. // const active_day7_completetask = 6501;
  487. //
  488. /**
  489. * 开服七日活动 - 领取奖励
  490. */
  491. const active_day7_drawreward = 6502;
  492. /**
  493. * 查询开服时间
  494. */
  495. const active_getzonePublicTs = 6503;
  496. /**
  497. * 查询当日在线时长信息
  498. */
  499. const active_getTodayOnlineInfos = 6504;
  500. /**
  501. * 神庙抽奖
  502. */
  503. const active_shenmiaoDrawPrize = 6505;
  504. // /**
  505. // * 普通任务 - 完成任务
  506. // */
  507. // const Task_completetask = 6506;
  508. //
  509. // /**
  510. // * 普通任务 - 领取奖励
  511. // */
  512. // const Task_drawreward = 6507;
  513. /**
  514. * 领取体力,间隔领取体力
  515. */
  516. const Task_Tili = 6508;
  517. // /**
  518. // * 活动 - 抽奖
  519. // */
  520. // const lottery = 6509;
  521. //
  522. // /**
  523. // * 新手引导 - 活动-抽奖
  524. // */
  525. // const lottery_demo = 6510;
  526. //
  527. // /**
  528. // * 活动 - 抽奖 领取保底奖励
  529. // */
  530. // const lottery_baodi = 6511;
  531. /**
  532. * 活动 - 凭兑换码领取礼包
  533. */
  534. const active_token_drawReward = 6512;
  535. /**
  536. * 活动 - 领取在线礼包
  537. */
  538. const active_draw_onlinegift = 6513;
  539. /**
  540. * 活动 - 领取全服注册礼包
  541. */
  542. const active_draw_reggift = 6514;
  543. /**
  544. * 活动 - 领取在线赠送体力
  545. */
  546. const active_presentTili = 6515;
  547. /**
  548. * 活动 - 查询当前全服注册人数
  549. */
  550. const active_get_regnum = 6516;
  551. /**
  552. * 开宝箱-减少冷却时间
  553. */
  554. const box_SubCoolDown = 6517;
  555. /**
  556. * 获取神庙信息
  557. */
  558. const active_GetShenmiaoData = 6518;
  559. /**
  560. *
  561. */
  562. const active_BuyShenmiaoDrawTicket = 6519;
  563. // </editor-fold>
  564. //
  565. // <editor-fold defaultstate="collapsed" desc="排行榜操作码 - 66xx">
  566. //
  567. /**
  568. * 排行榜 - 战斗力榜
  569. */
  570. const rank_fpower_getRank = 6601;
  571. /**
  572. * 排行榜 - 领取战斗力榜突破奖励
  573. */
  574. const rank_fpower_drawReward = 6602;
  575. /**
  576. * 排行榜 - 查询玩家战斗力排名
  577. */
  578. const rank_fpower_getRanking = 6603;
  579. /**
  580. * 排行榜 - 查询各榜榜一
  581. */
  582. const rank_getTop1 = 6604;
  583. /**
  584. * 排行榜 - 通关榜
  585. */
  586. const rank_passgate_getrank = 6605;
  587. /**
  588. * 排行榜 - 领取通关榜突破奖励
  589. */
  590. const rank_passgate_drawReward = 6606;
  591. /**
  592. * 排行榜 - 查询战力突破记录
  593. */
  594. const rank_fpower_breachLog = 6607;
  595. /**
  596. * 排行榜 - 查询通关榜突破记录
  597. */
  598. const rank_passgate_breachLog = 6608;
  599. //
  600. // </editor-fold>
  601. //
  602. // <editor-fold defaultstate="collapsed" desc="邮件操作码 - 67xx开始(ope)">
  603. /**
  604. * [6701]获取邮件列表
  605. */
  606. const cmd_email_questEmailList = 6701;
  607. /**
  608. * [6702]读取/打开一封邮件
  609. */
  610. const cmd_email_readAEmail = 6702;
  611. /**
  612. * [6703] 邮件 - 领取附件
  613. */
  614. const cmd_email_DrawReward = 6703;
  615. /**
  616. * [6704] 邮件 - 领取全部附件奖励
  617. */
  618. const cmd_email_DrawAllRewards = 6704;
  619. /**
  620. * [6705] 删除邮件——所有已读(不包含已读未领取状态的邮件)
  621. */
  622. const cmd_mail_delMailReaded = 6705;
  623. /**
  624. * [6706] 请求邮件未处理的数量(未打开邮件时检查邮件图标应该提示啥)
  625. */
  626. const cmd_mail_notReadMailNum = 6706;
  627. /**
  628. * [6707] 发送测试用道具
  629. */
  630. const cmd_mail_sendTestItems = 6707;
  631. // const
  632. // </editor-fold>
  633. //
  634. // <editor-fold defaultstate="collapsed" desc="战斗操作码 - 68xx">
  635. /**
  636. * 关卡战斗-预掉落计算
  637. */
  638. const cmd_fight_arenas_preFight = 6800;
  639. /**
  640. * 关卡战斗
  641. */
  642. const cmd_fight_arenasfight = 6801;
  643. /**
  644. * 关卡扫荡
  645. */
  646. const cmd_fight_arenassweep = 6802;
  647. /**
  648. * 挑战 - 获得挑战对手的信息
  649. */
  650. const cmd_fight_GetChallengeAdversaryInfo = 6803;
  651. /**
  652. * 挑战 - 记录挑战结果
  653. */
  654. const cmd_fight_LogChallengeResult = 6804;
  655. /**
  656. * 挑战 - 拉取挑战记录
  657. */
  658. const cmd_fight_GetChallengeLog = 6805;
  659. /**
  660. * 剧情 - 领取剧情任务章节星数奖励
  661. */
  662. const cmd_fight_GetArenasActiveReward = 6806;
  663. //
  664. // <editor-fold defaultstate="collapsed" desc=" 竞技场 681x ">
  665. //
  666. /**
  667. * 竞技场 主界面信息
  668. */
  669. const cmd_fight_pvp_maininfo = 6810;
  670. /**
  671. * 竞技场 刷新对手列表
  672. */
  673. const cmd_fight_pvp_refresh = 6811;
  674. /**
  675. * 竞技场 挑战xx.
  676. */
  677. const cmd_fight_pvp_pk = 6812;
  678. /**
  679. * 竞技场 调整阵容
  680. */
  681. const cmd_fight_pvp_setTeam = 6813;
  682. /**
  683. * 竞技场 购买挑战票
  684. */
  685. const cmd_fight_pvp_buyTicket = 6814;
  686. /**
  687. * 竞技场 查看榜单
  688. */
  689. const cmd_fight_pvp_getrank = 6815;
  690. /**
  691. * 竞技场 查询战报
  692. */
  693. const cmd_fight_pvp_getLog = 6816;
  694. //
  695. // </editor-fold>
  696. //
  697. // <editor-fold defaultstate="collapsed" desc=" 竞技商店 682x ">
  698. /**
  699. * 竞技场 商店 主界面信息
  700. */
  701. const cmd_fight_pvpShop_getMainInfo = 6820;
  702. /**
  703. * 竞技场 商店 购买道具
  704. */
  705. const cmd_fight_pvpShop_buy = 6821;
  706. /**
  707. * 竞技场 商店 刷新道具
  708. */
  709. const cmd_fight_pvpShop_refresh = 6822;
  710. // </editor-fold>
  711. //
  712. // <editor-fold defaultstate="collapsed" desc="世界boss战">
  713. /**
  714. * 世界boss - 进入
  715. */
  716. const fight_worldBoss_enter = 6831;
  717. /**
  718. * 世界boss - 上报伤害
  719. */
  720. const fight_worldBoss_addDamage = 6832;
  721. /**
  722. * 世界boss - 查询boss剩余血量
  723. */
  724. const fight_worldBoss_refresh_blood = 6833;
  725. /**
  726. * 世界boss - 查询当前伤害榜(前x名)
  727. */
  728. const fight_worldBoss_refresh_rank = 6834;
  729. /**
  730. * 世界boss - 查询boss输出伤害列表
  731. */
  732. const fight_worldBoss_refresh_bossSkill = 6835;
  733. //
  734. // // </editor-fold>
  735. //
  736. // </editor-fold>
  737. //
  738. // <editor-fold defaultstate="collapsed" desc="系统操作码 - 69xx">
  739. /**
  740. * 获取系统消息列表
  741. */
  742. const cmd_system_getsysmessage = 6901;
  743. /**
  744. * 系统日志上报
  745. */
  746. const cmd_system_logreport = 6902;
  747. /**
  748. * 客户端心跳包
  749. */
  750. const cmd_system_clienttick = 6903;
  751. /**
  752. * 玩家发送系统消息
  753. */
  754. const cmd_system_userSendsysmessage = 6904;
  755. // </editor-fold>
  756. //
  757. //
  758. // <editor-fold defaultstate="collapsed" desc="公会操作码 - 70xx开始(ope)">
  759. /**
  760. * 【会员】查询自己的公会信息
  761. */
  762. const cmd_guild_getUserGuildInfo = 7000;
  763. /**
  764. * 查询公会列表
  765. */
  766. const cmd_guild_getList = 7001;
  767. /**
  768. * 查询 推荐公会列表
  769. */
  770. const cmd_guild_refuseGuildCupScore = 7002;
  771. /**
  772. * 搜索 公会
  773. */
  774. const cmd_guild_searchGuildByID = 7003;
  775. /**
  776. * 创建公会
  777. */
  778. const cmd_guild_create = 7004;
  779. /**
  780. * 申请加入
  781. */
  782. const cmd_guild_apply = 7005;
  783. /**
  784. * 一键加入
  785. */
  786. const cmd_guild_QuickIn = 7006;
  787. /**
  788. * 请求公会信息
  789. */
  790. const cmd_guild_GetGuildInfo = 7007;
  791. /**
  792. * 编辑
  793. */
  794. const cmd_guild_modifyDeclare = 7008;
  795. /**
  796. * 解散
  797. */
  798. const cmd_guild_dismiss = 7009;
  799. /**
  800. * 开除
  801. */
  802. const cmd_guild_fireMember = 7010;
  803. /**
  804. * 审批
  805. */
  806. const cmd_guild_approve = 7011;
  807. /**
  808. * 转让副会长
  809. */
  810. //const cmd_guild_transferChair = 7012;
  811. /**
  812. * 设置副会长
  813. */
  814. const cmd_guild_setPriceChairman = 7013;
  815. /**
  816. * 获取成员信息
  817. */
  818. const cmd_guild_getGuildMembers = 7014;
  819. /**
  820. * 设置 干部职位
  821. */
  822. const cmd_guild_setOfficer = 7015;
  823. /**
  824. * 退会
  825. */
  826. const cmd_guild_quit = 7016;
  827. /**
  828. * 发起弹劾
  829. */
  830. const cmd_guild_InitiateAccuse = 7017;
  831. /**
  832. * 同意弹劾
  833. */
  834. const cmd_guild_Accuse = 7018;
  835. /**
  836. * 会长取消本次弹劾
  837. */
  838. const cmd_guild_ChairmanCancelAccuse = 7019;
  839. /**
  840. * 申请者玩家简介
  841. */
  842. const cmd_guild_ApplyUserIntro = 7020;
  843. /**
  844. * 发起捐献
  845. */
  846. const cmd_guild_requestDonate = 7021;
  847. /**
  848. * 捐献
  849. */
  850. const cmd_guild_donate = 7022;
  851. /**
  852. * 捐献数据刷新
  853. */
  854. const cmd_guild_donateInfoRefresh = 7023;
  855. /**
  856. * 购买捐献度 礼包
  857. */
  858. const cmd_guild_buyDonateGift = 7024;
  859. /**
  860. * 购买公会钻石 礼包
  861. */
  862. const cmd_guild_buyGuildCashGift = 7025;
  863. /**
  864. * 公会公告
  865. */
  866. const cmd_guild_announcement = 7026;
  867. /**
  868. * 公会邮件
  869. */
  870. const cmd_guild_noticeMail = 7027;
  871. /**
  872. * 【公会战】 邀请成员战斗
  873. */
  874. const cmd_guild_vsFightInvite = 7028;
  875. /**
  876. * 【公会战】 取消邀请
  877. */
  878. const cmd_guild_cancelInvite = 7029;
  879. /**
  880. * 【公会战】 接受,战斗
  881. */
  882. const cmd_guild_fight = 7030;
  883. // const
  884. // </editor-fold>
  885. //
  886. // <editor-fold defaultstate="collapsed" desc="商城 - 71xx ">
  887. //
  888. /**
  889. * 限购礼包主界面
  890. */
  891. const shop_limit_maininfo = 7101;
  892. /**
  893. * 购买限购礼包
  894. */
  895. const shop_limit_buy = 7102;
  896. /**
  897. * 月卡信息
  898. */
  899. const shop_monthlyVIP_Info = 7103;
  900. /**
  901. * 购买月卡
  902. */
  903. const shop_monthlyVIP_Buy = 7104;
  904. //
  905. // </editor-fold>
  906. //
  907. // <editor-fold defaultstate="collapsed" desc="事件操作码 - 72xx">
  908. /**
  909. * 查询角标事件通知
  910. */
  911. const cmd_event_GetNotifications = 7201;
  912. // </editor-fold>
  913. // <editor-fold defaultstate="collapsed" desc="学院操作码 - 73xx">
  914. /**
  915. * 激活某任务卡
  916. */
  917. const cmd_college_ActiveTaskCard = 7301;
  918. /**
  919. * 领取任务卡奖励
  920. */
  921. const cmd_college_ReceiveCollegeReward = 7302;
  922. /**
  923. * 领取课程奖励
  924. */
  925. const cmd_college_ReceiveCourseReward = 7303;
  926. // </editor-fold>
  927. // <editor-fold defaultstate="collapsed" desc=" 反射方法 ">
  928. /**
  929. * 辅助方法, 将所有错误码信息转换到CSV文本中.
  930. * 用法: 先在本文件中用ctrl + H 全部替换掉 'c onst ' -> 's tatic $'
  931. * 然后再调用本方法,即可在同目录下生成ErrCode.txt, 里面包含了所需信息.
  932. * @throws \Exception
  933. * @author gwang
  934. */
  935. static function L() {
  936. $class = new \ReflectionClass(__CLASS__); # 建立这个类的反射对象
  937. $properties = $class->getProperties(\ReflectionProperty::IS_STATIC); # 拉取所有静态属性
  938. $fileName = __DIR__ . "/" . str_replace('\\', '.', __CLASS__) . ".txt"; # 输出文件名
  939. $fd = fopen($fileName, "w");
  940. if (false === $fd) { # 打开文件失败
  941. throw new \Exception("打开$fileName 失败");
  942. }
  943. foreach ($properties as &$p) {
  944. $d = preg_replace('/[\*|\/|\s+]/', '', $p->getDocComment()); # 处理下注释
  945. $type = (strpos($p->getName(), 'err') === false ? 0 : 1); # errorType: 0 继续, 1 重启
  946. $n = fputs($fd, $p->getName() . ";" . $p->getValue() . ";$type;$d" . PHP_EOL); # 写入文件
  947. if (false === $n) { # 写入时失败
  948. throw new Exception("写入$fileName 时失败");
  949. }
  950. }
  951. fclose($fd);
  952. }
  953. // </editor-fold>
  954. }