CmdCode.php 28 KB

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