CmdCode.php 19 KB

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