ErrCode.php 26 KB

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