ErrCode.php 27 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342
  1. <?php
  2. namespace loyalsoft;
  3. /**
  4. * 错误码及错误描述字典
  5. * @author gwang
  6. */
  7. class ErrCode {
  8. /**
  9. * 交互成功
  10. */
  11. const ok = 0;
  12. //
  13. // <editor-fold defaultstate="collapsed" desc=" 基础错误码 10xx ">
  14. /**
  15. * 未知原因错误
  16. */
  17. const err_unknownn = 1001;
  18. /**
  19. * 内部错误
  20. */
  21. const err_innerfault = 1002;
  22. /**
  23. * 数据库操作失败
  24. */
  25. const err_db = 1003;
  26. /**
  27. * 内存操作失败
  28. */
  29. const err_mem = 1004;
  30. /**
  31. * 断言失败
  32. */
  33. const err_assert = 1005;
  34. /**
  35. * 消息内容非法(不满足tk校验的条件)
  36. */
  37. const err_illegal = 1011;
  38. /**
  39. * 消息内容缺少校验值
  40. */
  41. const err_signo = 1012;
  42. /**
  43. * 消息超时
  44. */
  45. const err_outtime = 1021;
  46. /**
  47. * 客户端版本过低-整包更
  48. */
  49. const clientversionlow_err = 1031;
  50. /**
  51. * 客户端版本过低-增量更
  52. */
  53. const clientnewversion_msg = 1032;
  54. /**
  55. * 客户端打印信息并且退出
  56. */
  57. const clientPrintMsg_Halt = 1033;
  58. /**
  59. * 功能码非法
  60. */
  61. const ope_err = 1210;
  62. /**
  63. * 操作码非法
  64. */
  65. const cmd_err = 1211;
  66. /**
  67. * 参数非法
  68. */
  69. const paras_err = 1212;
  70. /**
  71. * 参数不足
  72. */
  73. const parasnotenough_msg = 1213;
  74. /**
  75. * 内容包含敏感词
  76. */
  77. const sensword_msg = 1234;
  78. /**
  79. * 服务器正在维护中
  80. */
  81. const err_server_maintaining = 1301;
  82. /**
  83. * 服务器正在升级,请过会儿再来。
  84. */
  85. const err_server_updating = 1302;
  86. /**
  87. * 已经在其他地方登录
  88. */
  89. const err_anotherlogin = 1303;
  90. /**
  91. * 功能暂未开放
  92. */
  93. const function_notopen_msg = 1801;
  94. /**
  95. * 方法尚未实现
  96. */
  97. const err_method_notimplement = 1802;
  98. /**
  99. * 方法已过时, 废弃的.
  100. */
  101. const err_method_obsoleted = 1803;
  102. /**
  103. * 游戏常量数据错误
  104. */
  105. const err_const_no = 1825;
  106. // </editor-fold>
  107. //
  108. // <editor-fold defaultstate="collapsed" desc=" not enough 系列 ">
  109. /**
  110. * 金币不足
  111. */
  112. const notenough_gold_msg = 3014;
  113. /**
  114. * 宝石不足
  115. */
  116. const notenough_cash_msg = 3015;
  117. /**
  118. * 友情点不足
  119. */
  120. const notenough_friendshippoint = 3016;
  121. /**
  122. * 玩家荣誉值不足[荣誉值兑换]
  123. */
  124. const notenough_honour = 3032;
  125. /**
  126. * 元宝不足
  127. */
  128. const notenought_yuanbao = 3040;
  129. /**
  130. * 玩家体力值不足
  131. */
  132. const notenough_tili = 3046;
  133. /**
  134. * 晶石不足
  135. */
  136. const notenough_spar = 3100;
  137. // </editor-fold>
  138. //
  139. // <editor-fold defaultstate="collapsed" desc=" user 31xx ">
  140. /**
  141. * 玩家未登录
  142. */
  143. const user_login_err = 3101;
  144. /**
  145. * 玩家不存在
  146. */
  147. const user_no_err = 3102;
  148. /**
  149. * 玩家数据损坏
  150. */
  151. const user_data_broken_err = 3103;
  152. /**
  153. * 连续登录天数不够
  154. */
  155. const user_contigiftno_msg = 3104;
  156. /**
  157. * 已经领取连续登录礼包
  158. */
  159. const user_contigiftfalse_msg = 3105;
  160. /**
  161. * 设置新手引导进度失败
  162. */
  163. const user_settutorialscompletedfail_err = 3106;
  164. /**
  165. * 玩家等级不足
  166. */
  167. const user_levelnotenough_msg = 3107;
  168. /**
  169. * 找不到玩家的交互体数据
  170. */
  171. const user_interact_no_err = 3108;
  172. /**
  173. * 找不到玩家的分区记录
  174. */
  175. const user_zoneinfo_no_err = 3109;
  176. /**
  177. * 玩家昵称已经存在,请换一个再试
  178. */
  179. const user_nicknameexist = 3110;
  180. /**
  181. * 没有这种奖励类型
  182. */
  183. const user_reward_typeno = 3031;
  184. // </editor-fold>
  185. //
  186. // <editor-fold defaultstate="collapsed" desc=" 英雄错误码 33xx ">
  187. /**
  188. * 玩家没有这个英雄
  189. */
  190. const hero_no = 3301;
  191. /**
  192. * 找不到英雄升级消耗数据
  193. */
  194. const hero_level_const_no_err = 3302;
  195. /**
  196. * 英雄碎片不足
  197. */
  198. const hero_segment_not_enough = 3303;
  199. /**
  200. * 缺少英雄的常量数据
  201. */
  202. const hero_const_no_err = 3304;
  203. /**
  204. * 英雄强化--已经达到最大等阶
  205. */
  206. const hero_strength_maxstrengthlevel = 3305;
  207. /**
  208. * 英雄升级--已经达到当前最大等级
  209. */
  210. const hero_upgrade_maxupgradelevel = 3306;
  211. /**
  212. * 英雄升级--消耗的数据错误(道具或者卡牌不存在)
  213. */
  214. const hero_upgrade_cost = 3307;
  215. /**
  216. * 英雄升星--已经达到最大星级
  217. */
  218. const hero_star_maxstarlevel = 3308;
  219. /**
  220. * 英雄升星--消耗英雄参数错误
  221. */
  222. const hero_star_costhero = 3309;
  223. /**
  224. * 英雄升星--消耗道具数量不充足
  225. */
  226. const hero_star_notengoughitem = 3310;
  227. /**
  228. * 英雄升星--升星消耗的常量数据不存在
  229. */
  230. const hero_star_level_const_no_err = 3311;
  231. /**
  232. * 英雄升星--全局变量缺失该英雄属性对应的升星消耗道具信息
  233. */
  234. const hero_star_noglobal_costitem = 3312;
  235. /**
  236. * 英雄升星--消耗道具与消耗道具数量的常量配置不匹配
  237. */
  238. const hero_star_conststr_itemnotmathnum = 3313;
  239. /**
  240. * 英雄好感度---缺少对应好感度的消耗设置的常量数据
  241. */
  242. const hero_favor_cost_const_no = 3314;
  243. /**
  244. * 英雄好感度---解锁目标好感度参数错误
  245. */
  246. const hero_favor_targetfavor_para = 3315;
  247. /**
  248. * 英雄分解---传递消耗英雄参数错误
  249. */
  250. const hero_separate_cost_hero = 3316;
  251. /**
  252. * 英雄升阶---缺少对应等阶的消耗设置的常量数据
  253. */
  254. const hero_strength_cost_const_no = 3317;
  255. /**
  256. * 英雄技能__当前技能等级已经达到上限
  257. */
  258. const hero_upgradeSkill_maxLevel = 3318;
  259. /**
  260. * 英雄技能__该技能升级的消耗常量配置不存在
  261. */
  262. const hero_upgradeSkill_cost_const_no = 3319;
  263. /**
  264. * 英雄打分 -- 已经给次英雄打过分了
  265. */
  266. const hero_scoreit_hasscored = 3320;
  267. /**
  268. * 英雄升级——消耗的常量配置不存在
  269. */
  270. const hero_upgrade_cost_const_no = 3321;
  271. /**
  272. * 玩家已经存在一个此类的英雄
  273. */
  274. const hero_existSameHero_err = 3322;
  275. /**
  276. * 玩家神血的消耗常量数据不存在
  277. */
  278. const hero_godblood_level_const_no = 3323;
  279. /**
  280. * 玩家神血的血脉达到定级
  281. */
  282. const hero_godblood_maxlevel = 3324;
  283. /**
  284. * 玩家神血 强化,消耗道具不足
  285. */
  286. const hero_godblood_notengoughitem = 3325;
  287. /**
  288. * 玩家已经解锁
  289. */
  290. const hero_lockState = 3326;
  291. //
  292. // </editor-fold>
  293. //
  294. // <editor-fold defaultstate="collapsed" desc=" 仓库/背包 34xx ">
  295. /**
  296. * 该目标不能放入仓库
  297. */
  298. const store_putinto = 3401;
  299. /**
  300. * 仓库没有这个道具
  301. */
  302. const store_itemno_err = 3402;
  303. /**
  304. * 道具不可使用
  305. */
  306. const store_itemcantuse = 3404;
  307. /**
  308. * 道具数量不足
  309. */
  310. const store_itemnotenough = 3405;
  311. /**
  312. * 移除道具失败!
  313. */
  314. const store_removefail = 3407;
  315. /**
  316. * 道具不能分解
  317. */
  318. const store_itemcantdecompose = 3408;
  319. /**
  320. * 装备已经在别的英雄身上装备
  321. */
  322. const store_equipWeared_err = 3409;
  323. /**
  324. * 装备没有在此英雄身上装备
  325. */
  326. const store_noequip_err = 3410;
  327. /**
  328. * 未知装备类型
  329. */
  330. const store_equip_type = 3411;
  331. // </editor-fold>
  332. //
  333. // <editor-fold defaultstate="collapsed" desc=" 商城/付费 88xx ">
  334. /**
  335. * 尚未首付
  336. */
  337. const pay_firstpayno_err = 8801;
  338. /**
  339. * 已经领取首付
  340. */
  341. const pay_firstpaygetted = 8802;
  342. /**
  343. * 系统繁忙
  344. */
  345. const pay_systembusy_err = 8803;
  346. /**
  347. * 不是黄钻或已经领取黄钻礼包
  348. */
  349. const pay_vipnewerno = 8804;
  350. /**
  351. * amt数值小于等于0
  352. */
  353. const pay_m_amtzero_err = 8805;
  354. /**
  355. * 价格异常
  356. */
  357. const pay_price_err = 8806;
  358. /**
  359. * 支付类型异常
  360. */
  361. const pay_m_type_err = 8807;
  362. /**
  363. * 商品常量数据错误-货物内容
  364. */
  365. const pay_shopItem_cosnt_goods_err = 8808;
  366. /**
  367. * 商城 已达刷新次数上限
  368. */
  369. const pay_refresh_times = 8809;
  370. /**
  371. * 神秘商城 - 购买次数已达上限
  372. */
  373. const pay_secretshop_buytimes = 8810;
  374. /**
  375. * 神秘商城 - 物品数据错误
  376. */
  377. const pay_secretshop_noitem_err = 8811;
  378. /**
  379. * 充值 - 订单不存在
  380. */
  381. const pay_order_no = 8812;
  382. /**
  383. * 充值 - 付款状态不正确 正在重新查询...
  384. */
  385. const pay_order_paystatus = 8813;
  386. /**
  387. * 充值 - 此订单已经发货, 无需重复请求
  388. */
  389. const pay_order_drawed = 8814;
  390. /**
  391. * 充值 - 订单uid不符
  392. */
  393. const pay_order_uid = 8815;
  394. /**
  395. * 神秘商城 - 免费刷新时间未到
  396. */
  397. const pay_secretshopt_freeRefresh_Time = 8816;
  398. // </editor-fold>
  399. //
  400. // <editor-fold defaultstate="collapsed" desc=" 交互操作 36xx ">
  401. //
  402. // </editor-fold>
  403. //
  404. // <editor-fold defaultstate="collapsed" desc=" 好友 37xx ">
  405. /**
  406. * 不存在该好友
  407. */
  408. const friend_no_err = 3701;
  409. /**
  410. * 不存在好友的平台信息
  411. */
  412. const friend_noplat_err = 3702;
  413. /**
  414. * 已经领取该好友礼物
  415. */
  416. const friend_gift = 3703;
  417. /**
  418. * 已到达当天领取好友礼物上限
  419. */
  420. const friend_maxgift = 3704;
  421. /**
  422. * 获取不到好友礼物几率常量数据
  423. */
  424. const friend_giftrent_const_no_err = 3705;
  425. // </editor-fold>
  426. //
  427. // <editor-fold defaultstate="collapsed" desc=" 任务 38xx ">
  428. /**
  429. * 不存在该任务
  430. */
  431. const goal_const_no_err = 3801;
  432. /**
  433. * 未找到该任务信息
  434. */
  435. const goal_nogoaldata_err = 3802;
  436. /**
  437. * 任务尚未完成
  438. */
  439. const goal_notcomplete = 3803;
  440. /**
  441. * 任务奖励已领取
  442. */
  443. const goal_rewarded = 3804;
  444. // </editor-fold>
  445. //
  446. // <editor-fold defaultstate="collapsed" desc=" 活动 39xx ">
  447. /**
  448. * 不存在该活动礼包
  449. */
  450. const active_const_no_err = 3901;
  451. /**
  452. * 活动领取非法
  453. */
  454. const active_illegal = 3902;
  455. /**
  456. * 礼包已领取
  457. */
  458. const active_hasgetted = 3903;
  459. /**
  460. * 在线礼包常量数据不存在
  461. */
  462. const onlinegift_constno_err = 3904;
  463. /**
  464. * 在线礼包时间未到
  465. */
  466. const onlinegift_timenotenough = 3905;
  467. /**
  468. * 在线礼包id错误
  469. */
  470. const onlinegift_wrongid = 3906;
  471. /**
  472. * 免费抽奖类型不存在
  473. */
  474. const lottery_typenotexist = 3907;
  475. /**
  476. * 剩余免费抽奖次数不够了
  477. */
  478. const lottery_freenotenough = 3908;
  479. /**
  480. * 连续签到常量数据不存在
  481. */
  482. const checkin_const_no = 3909;
  483. /**
  484. * 连续签到活动已过期
  485. */
  486. const checkin_outofday = 3910;
  487. /**
  488. * 连续签到奖励已领取
  489. */
  490. const checkin_giftgetted = 3911;
  491. /**
  492. * 连续签到奖励礼包id不存在
  493. */
  494. const checkin_giftidno = 3912;
  495. /**
  496. * 连续签到天数不够.
  497. */
  498. const chekin_daysnotenough = 3913;
  499. /**
  500. * 完成新手引导的大礼包找不到常量数据。
  501. */
  502. const Guide_completeGiftNo = 3914;
  503. /**
  504. * 不存在的抽奖次数
  505. */
  506. const lottery_notexistLotterCount = 3915;
  507. /**
  508. * 不存在的抽奖消耗财富类型
  509. */
  510. const lottery_notexistLotterCostType = 3916;
  511. /**
  512. * 未能生成中奖物品
  513. */
  514. const lottery_noselecteditem = 3917;
  515. /**
  516. * 已经留下回归密码了
  517. */
  518. const active_returncode_leaved = 3921;
  519. /**
  520. * 密码格式不合法
  521. */
  522. const active_returncode_illegal = 3922;
  523. /**
  524. * 新手七天礼包,想要领取的礼包索引有误
  525. */
  526. const active_new7_wrongindex = 3923;
  527. /**
  528. * 活动 - 激活码 渠道错误.
  529. */
  530. const active_activecode_plat = 3924;
  531. /**
  532. * 活动 - 激活码 无效
  533. */
  534. const active_activecode_format = 3925;
  535. /**
  536. * 没有充值返利常量数据
  537. * * */
  538. const active_rechargereward_const_no = 3926;
  539. /**
  540. * 充值返利活动未开启
  541. * * */
  542. const active_rechargereward_notopen = 3927;
  543. /**
  544. * 充值返利,领取奖励,充值金额不足
  545. * * */
  546. const active_rechargereward_notenough = 3928;
  547. /**
  548. * 充值返利,领取奖励,当前开启的活动key与mem中存储的key不一致
  549. * * */
  550. const active_rechargereward_keynotsuit = 3929;
  551. /**
  552. * 充值返利,您已经领取过此奖励
  553. * * */
  554. const active_rechargereward_hasgetted = 3930;
  555. /**
  556. * 玩家充值返利数据错误
  557. * * */
  558. const active_rechargereward_userinfoerr = 3931;
  559. /**
  560. * 回归奖励已经领取
  561. */
  562. const active_returnreward_drawed = 3932;
  563. /**
  564. * 回归奖励验证失败
  565. */
  566. const active_returnreward_VerifyFailed = 3933;
  567. /**
  568. * 回归奖励验证的时候通讯失败,请稍后再试
  569. */
  570. const active_returnreward_VerifyConnectionFailed = 3934;
  571. /**
  572. * 回归奖励,这组回归密码已经被使用过啦.
  573. */
  574. const active_returnreward_codeused = 3935;
  575. /**
  576. * 预约礼包活动已经结束
  577. */
  578. const active_reserve_reward_outtime = 3936;
  579. /**
  580. * 激活码礼包已经过期
  581. */
  582. const active_activecode_outtime = 3937;
  583. /**
  584. * 开服七日活动 - 任务状态异常
  585. */
  586. const active_day7_taskstate_err = 3938;
  587. /**
  588. * 开服七日活动 - 找不到常量数据
  589. */
  590. const active_day7_const_no_err = 3939;
  591. /**
  592. * 开服七日活动 - 总点数不足
  593. */
  594. const active_day7_totaldianshu = 3940;
  595. /**
  596. * 开服七日活动 - 找不到任务
  597. */
  598. const active_day7_taskno_err = 3941;
  599. /**
  600. * 抽奖 - 保底奖励, 次数不满足
  601. */
  602. const lottery_baodi_times_lt = 3942;
  603. /**
  604. * 抽奖 - 卡槽尚未解锁
  605. */
  606. const err_lottery_slot_locked = 3943;
  607. /**
  608. * 抽奖 - 卡槽使用中
  609. */
  610. const err_lottery_slot_not_emputy = 3944;
  611. /**
  612. * 抽奖 - 搜索尚未结束
  613. */
  614. const err_lottery_slot_time = 3945;
  615. /**
  616. * 抽奖 - 卡槽数据异常
  617. */
  618. const err_lottery_slot_emputy = 3946;
  619. /**
  620. * 抽奖 - 卡槽已经解锁
  621. */
  622. const err_lottery_slot_unlocked = 3947;
  623. /**
  624. * 抽奖 - 达到每次次数限制
  625. */
  626. const err_lottery_daily_limit = 3948;
  627. /**
  628. * 宝箱 - 数量不足
  629. */
  630. const box_not_enough = 3950;
  631. /**
  632. * 活动 - 此活动尚未开放
  633. */
  634. const active_time = 3951;
  635. /**
  636. * 活动 - 兑换码已经使用过了
  637. */
  638. const active_activecode_used = 3952;
  639. // </editor-fold>
  640. //
  641. // <editor-fold defaultstate="collapsed" desc=" 战斗错误码 40xx ">
  642. /**
  643. * 关卡挑战 - 难度参数错误
  644. */
  645. const err_arenas_difficulty = 4004;
  646. /**
  647. * 关卡挑战记录非法
  648. */
  649. const err_arenas_logillegal = 4005;
  650. /**
  651. * 错误的关卡索引
  652. */
  653. const err_arenasgate_indexillegal = 4006;
  654. /**
  655. * 关卡挑战体力值不足,无法战斗
  656. */
  657. const err_arenasgate_nocount = 4007;
  658. /**
  659. * 战场解锁星数不足,无法扫荡该关卡
  660. */
  661. const err_arenas_unlockstarnotenough = 4008;
  662. /**
  663. * 关卡的挑战次数已达上限
  664. */
  665. const err_arenas_normalgate_numno = 4009;
  666. /**
  667. * 错误的扫荡次数
  668. */
  669. const err_arenasgate_errSweepCount = 4010;
  670. /**
  671. * 关卡星星奖励的常量数据不存在!
  672. */
  673. const err_arenas_starreward_const_no = 4011;
  674. /**
  675. * 关卡星星奖励--奖励已经领取
  676. */
  677. const err_arenas_hasgetstarreward = 4012;
  678. /**
  679. * 关卡星星奖励--星星数量不足无法领取奖励
  680. */
  681. const err_arenas_starreward_starNotEnough = 4013;
  682. /**
  683. * 无尽关卡模式——常量数据丢失
  684. */
  685. const err_gateForever_const_no = 4014;
  686. /**
  687. * 无尽关卡模式—挑战次数已达上限
  688. */
  689. const err_gateForever_countIsFull = 4015;
  690. /**
  691. * 无尽关卡模式—挑战次数非法
  692. */
  693. const err_gateForever_countillegal = 4016;
  694. /**
  695. * 副本开启中
  696. */
  697. const carbon_opened = 4017;
  698. /**
  699. * 副本未开启
  700. */
  701. const carbon_closed = 4018;
  702. /**
  703. * 副本挑战的关卡索引错误
  704. */
  705. const carbon_gateIndex = 4019;
  706. /**
  707. * 副本-难度等级错误
  708. */
  709. const carbon_wrongdifficult = 4020;
  710. /**
  711. * 竞技场 - 指定的pvp对手不存在
  712. */
  713. const pvp_wrongMather = 4021;
  714. /**
  715. * 竞技场 - 刷新过于频繁
  716. */
  717. const pvp_refresh_time = 4022;
  718. /**
  719. * 竞技场 - 错误的体力充值数量
  720. */
  721. const pvp_tili_chargenum = 4023;
  722. /**
  723. * 竞技场 - 挑战票不足.
  724. */
  725. const pvp_no_tickets = 4024;
  726. /**
  727. * 竞技场 - 刷新对手花费数据对不上.
  728. */
  729. const pvp_refresh_cost_ilegal = 4030;
  730. /**
  731. * 竞技场 - 刷新对手已达次数上限
  732. */
  733. const pvp_refresh_max = 4029;
  734. /**
  735. * 竞技场 - 挑战票购买, 跟预期的值对不上
  736. */
  737. const pvp_ticket_cost_ilegal = 4028;
  738. /**
  739. * 竞技场 - 道具已售罄
  740. */
  741. const pvp_item_soldout = 4027;
  742. /**
  743. * 竞技场 - 活跃值不够
  744. */
  745. const pvp_coinnotenough = 4026;
  746. /**
  747. * 剧情关卡 - 剧情关卡不能重复挑战,只能挑战一次
  748. */
  749. const story_repeatfight = 4025;
  750. // </editor-fold>
  751. //
  752. // <editor-fold defaultstate="collapsed" desc=" 排行榜错误码 41xx ">
  753. /**
  754. * 排行榜 - 战斗力解锁条件尚未达成
  755. */
  756. const rank_fpower_unlocked = 4101;
  757. /**
  758. * 排行榜 - 奖励已经领取了
  759. */
  760. const rank_reward_hasgetted = 4102;
  761. /**
  762. * 排行榜 - 通关帮奖励解锁条件尚未达成
  763. */
  764. const rank_passsgate_unlocked = 4103;
  765. // </editor-fold>
  766. //
  767. // ------------神兽碎片融合模块错误码---------
  768. /**
  769. * 找不到碎片的常量数据
  770. */
  771. const err_segment_const_no = 4500;
  772. // -------------- 图鉴 相关错误码 ---------------
  773. /**
  774. * 图鉴-找不到神兽的常量数据
  775. */
  776. const err_manual_const_no = 4600;
  777. /**
  778. * 图鉴-领奖-尚未获得神兽
  779. */
  780. const err_manual_reward_nopet = 4601;
  781. /**
  782. * 图鉴-领奖-数量不对
  783. */
  784. const err_manual_reward_wrongamt = 4602;
  785. //
  786. // <editor-fold defaultstate="collapsed" desc=" 拍卖 47xx ">
  787. /**
  788. * 拍卖物品的常量数据不存在
  789. */
  790. const auction_const_no = 4701;
  791. /**
  792. * 当天拍卖物品的数据不存在
  793. */
  794. const auction_curdaynotexist = 4702;
  795. /**
  796. * 竞价的时候超过时间限制
  797. */
  798. const auction_timeout = 4703;
  799. /**
  800. * 拍卖一件不在拍品列表中的物品
  801. */
  802. const auction_noexistautionItem = 4704;
  803. /**
  804. * 拍卖一件不在拍品列表中的物品
  805. */
  806. const auction_pricelowthancurprice = 4705;
  807. /**
  808. * 拍品尚未开始拍卖
  809. */
  810. const auction_beforstart = 4706;
  811. /**
  812. * 拍品已经结束拍卖
  813. */
  814. const auction_end = 4707;
  815. /**
  816. * 出价低于当前价
  817. */
  818. const auction_failprice = 4708;
  819. // </editor-fold>
  820. //
  821. // <editor-fold defaultstate="collapsed" desc="公会错误码 - 48xx开始">
  822. /**
  823. * 玩家等级不足
  824. */
  825. const err_guild_userlevel = 4800;
  826. /**
  827. * 您已经属于一个公会成员了.
  828. */
  829. const err_guild_userhasbeenaguildmember = 4801;
  830. /**
  831. * 解散公会后的24小时冷却时间尚未过去.
  832. */
  833. const err_guild_dissmisscodingtime = 4802;
  834. /**
  835. * 同名公会已存在
  836. */
  837. const err_guild_nameexists = 4803;
  838. /**
  839. * 创建公会时所传公会名称参数为空.
  840. */
  841. const err_guild_nameEmputy = 4804;
  842. /**
  843. * 金币不足
  844. */
  845. const err_msg_goldnotenough = 4805;
  846. /**
  847. * 找不到公会数据
  848. */
  849. const err_guild_guildinfono = 4806;
  850. /**
  851. * 成员已满
  852. */
  853. const err_guild_memberfull = 4807;
  854. /**
  855. * 申请队列已满
  856. */
  857. const err_guild_applyListFull = 4808;
  858. /**
  859. * 公会未开启一键加入功能
  860. */
  861. const err_guild_quickinclosed = 4809;
  862. /**
  863. * 玩家不属于此公会
  864. */
  865. const err_guild_usernotguildmember = 4810;
  866. /**
  867. * 找不到玩家的公会信息
  868. */
  869. const err_guild_userguildinfono = 4811;
  870. /**
  871. * 玩家不是该公会的会长或是干部
  872. */
  873. const err_guild_usernotchairman = 4812;
  874. /**
  875. * 解散工会的时候, 公会不为空
  876. */
  877. const err_guild_notEmputy = 4813;
  878. /**
  879. * 会长不能开除自己.
  880. */
  881. const err_guild_cannotfireyourself = 4814;
  882. /**
  883. * 申请信息未找到
  884. */
  885. const err_guild_appmsgnotfount = 4815;
  886. /**
  887. * 申请信息已经处理过了
  888. */
  889. const err_guild_applymsgdealed = 4816;
  890. /**
  891. * 玩家不存在
  892. */
  893. const err_user_no = 4817;
  894. /**
  895. * 无权限
  896. */
  897. const err_guild_nopermission = 4818;
  898. /**
  899. * 副会长名额已满
  900. */
  901. const err_guild_viceChairmanFull = 4819;
  902. /**
  903. * 操作码非法
  904. */
  905. const err_msg_cmd = 4820;
  906. /**
  907. * 徽章不能为null
  908. */
  909. const err_guild_imgEmputy = 4821;
  910. /**
  911. * 不能删除会长
  912. */
  913. const err_guild_cannotfireychairman = 4822;
  914. /**
  915. * 下一任会长必须是本公会的会员
  916. */
  917. // const err_guild_lastchairmanidnoexist = 4823;
  918. /**
  919. * 玩家已经是该职位
  920. */
  921. const err_guild_positionconflict = 4824;
  922. /**
  923. * 干部名额已满
  924. */
  925. const err_guild_OfficermanFull = 4825;
  926. /**
  927. * 没有限权设置此职位
  928. */
  929. const err_guild_cannotsetpositioncon = 4826;
  930. /**
  931. * 申请信息已经存在请稍候在申请
  932. */
  933. const err_guild_applymsgalwaysexist = 4827;
  934. /**
  935. * 申请信息被拒接
  936. */
  937. const err_guild_applymsgrejected = 4828;
  938. /**
  939. * 会长登陆时间信息发生改变无法弹劾,请刷新数据
  940. */
  941. const err_guild_notsatisfiedaccusecondition = 4829;
  942. /**
  943. * 不在弹劾有效时间内
  944. */
  945. const err_guild_noaccusevalidtimeperiod = 4830;
  946. /**
  947. * 弹劾 冷却中请稍候在弹劾
  948. */
  949. const err_guild_accusecooling = 4831;
  950. /**
  951. * 不允许申请加入该公会
  952. */
  953. const err_guild_noallowaddguild = 4832;
  954. /**
  955. * 会长没有被弹劾
  956. */
  957. const err_guild_chairmannoaccused = 4833;
  958. /**
  959. * 不允许反复弹劾
  960. */
  961. const err_guild_noallowagainaccuse = 4834;
  962. /**
  963. * 请求捐献数据不能为null
  964. */
  965. const err_guild_requestdonatecannotnull = 4835;
  966. /**
  967. * 请求捐献 时间不到
  968. */
  969. const err_guild_lessthannextrequestdonate = 4836;
  970. /**
  971. * 没有卡牌常量数据
  972. */
  973. const err_guild_nosegmentconst = 4837; //这个暂时用着,卡牌那应该有这个错误码
  974. /**
  975. * 不能请求该类型的卡牌
  976. */
  977. const err_guild_thiscardcannotrequestordonate = 4838; //这个暂时用着,卡牌那应该有这个错误码
  978. /**
  979. * 请求卡牌数量过多
  980. */
  981. const err_guild_requestcardnumtomuch = 4839; //这个暂时用着,卡牌那应该有这个错误码
  982. /**
  983. * 玩家没有足够的卡牌可以捐献
  984. */
  985. const err_guild_noenoughcardinfo = 4840; //这个暂时用着,卡牌那应该有这个错误码
  986. /**
  987. * 卡牌类型不一致
  988. */
  989. const err_guild_cardtypeinconformity = 4841;
  990. /**
  991. * 今天捐献卡牌数量已经达到最大值
  992. */
  993. const err_guild_donatecardnumreachlimit = 4842;
  994. /**
  995. * 已经超过捐献时间无法捐献
  996. */
  997. const err_guild_overdonatetime = 4843;
  998. /**
  999. * 玩家背包中没有该类型的碎片
  1000. */
  1001. const err_guild_usersegementnothechip = 4844;
  1002. /**
  1003. * 英雄合成碎片与参数id不一致
  1004. */
  1005. const err_guild_herochiptypeinconformity = 4846;
  1006. /**
  1007. * 不存在该英雄
  1008. */
  1009. const err_guild_nohero = 4847;
  1010. /**
  1011. * 该贡献度礼包没有开放
  1012. */
  1013. const err_guild_contributionGiftnoopen = 4848;
  1014. /**
  1015. * 该公会钻石礼包没有开放
  1016. */
  1017. const err_guild_cashGiftnoopen = 4849;
  1018. /**
  1019. * 贡献度不够
  1020. */
  1021. const err_guild_contributionnosatisfy = 4850;
  1022. /**
  1023. * 缺少礼包常量数据
  1024. */
  1025. const err_guild_noguildgiftconst = 4851;
  1026. /**
  1027. * 公会消息没有该卡牌的信息
  1028. */
  1029. const err_guild_guildjournalnothechipinfo = 4852;
  1030. /**
  1031. * 公会邮件内容不能为null
  1032. */
  1033. const err_guild_mailcontentcannotbenull = 4853;
  1034. /**
  1035. * 公会公告编辑冷却时间中
  1036. */
  1037. const err_guild_AnnouncementEditCooling = 4854;
  1038. /**
  1039. * 公会战 已经存在邀请数据,不能再次邀请
  1040. */
  1041. const err_guild_fightInvitealreadyexisted = 4855;
  1042. /**
  1043. * 公会战 邀请信息不存在
  1044. */
  1045. const err_guild_fightInvitenoexisted = 4856;
  1046. /**
  1047. * 公会战 在战斗中
  1048. */
  1049. const err_guild_fighting = 4857;
  1050. /**
  1051. * 公会战 在战斗中
  1052. */
  1053. const err_guild_applyconditionnoenough = 4858;
  1054. // </editor-fold>
  1055. //
  1056. // <editor-fold defaultstate="collapsed" desc=" 反射方法 ">
  1057. /**
  1058. * 辅助方法, 将所有错误码信息转换到CSV文本中.
  1059. * 用法: 先在本文件中用ctrl + H 全部替换掉 'c onst ' -> 's tatic $'
  1060. * 然后再调用本方法,即可在同目录下生成ErrCode.txt, 里面包含了所需信息.
  1061. * @throws \Exception
  1062. * @author gwang
  1063. */
  1064. static function L() {
  1065. $class = new \ReflectionClass(__CLASS__); # 建立这个类的反射对象
  1066. $properties = $class->getProperties(ReflectionProperty::IS_STATIC); # 拉取所有静态属性
  1067. $fileName = __DIR__ . "/ErrCode.txt"; # 输出文件名
  1068. $fd = fopen($fileName, "w");
  1069. if (false === $fd) { # 打开文件失败
  1070. throw new \Exception("打开$fileName 失败");
  1071. }
  1072. foreach ($properties as &$p) {
  1073. $d = preg_replace('/[\*|\/|\s+]/', '', $p->getDocComment()); # 处理下注释
  1074. $type = (strpos($p->getName(), 'err') === false ? 0 : 1); # errorType: 0 继续, 1 重启
  1075. $n = fputs($fd, $p->getName() . ";" . $p->getValue() . ";$type;$d" . PHP_EOL); # 写入文件
  1076. if (false === $n) { # 写入时失败
  1077. throw new Exception("写入$fileName 时失败");
  1078. }
  1079. }
  1080. fclose($fd);
  1081. }
  1082. // </editor-fold>
  1083. }