ErrCode.php 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578
  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=" 商城/付费 88xx ">
  109. /**
  110. * 尚未首付
  111. */
  112. const pay_firstpayno_err = 8801;
  113. /**
  114. * 已经领取首付
  115. */
  116. const pay_firstpaygetted = 8802;
  117. /**
  118. * 系统繁忙
  119. */
  120. const pay_systembusy_err = 8803;
  121. /**
  122. * 不是黄钻或已经领取黄钻礼包
  123. */
  124. const pay_vipnewerno = 8804;
  125. /**
  126. * amt数值小于等于0
  127. */
  128. const pay_m_amtzero_err = 8805;
  129. /**
  130. * 价格异常
  131. */
  132. const pay_price_err = 8806;
  133. /**
  134. * 支付类型异常
  135. */
  136. const pay_m_type_err = 8807;
  137. /**
  138. * 商品常量数据错误-货物内容
  139. */
  140. const pay_shopItem_cosnt_goods_err = 8808;
  141. /**
  142. * 商城 已达刷新次数上限
  143. */
  144. const pay_refresh_times = 8809;
  145. /**
  146. * 神秘商城 - 购买次数已达上限
  147. */
  148. const pay_secretshop_buytimes = 8810;
  149. /**
  150. * 神秘商城 - 物品数据错误
  151. */
  152. const pay_secretshop_noitem_err = 8811;
  153. /**
  154. * 充值 - 订单不存在
  155. */
  156. const pay_order_no = 8812;
  157. /**
  158. * 充值 - 付款状态不正确 正在重新查询...
  159. */
  160. const pay_order_paystatus = 8813;
  161. /**
  162. * 充值 - 此订单已经发货, 无需重复请求
  163. */
  164. const pay_order_drawed = 8814;
  165. /**
  166. * 充值 - 订单uid不符
  167. */
  168. const pay_order_uid = 8815;
  169. /**
  170. * 神秘商城 - 免费刷新时间未到
  171. */
  172. const pay_secretshopt_freeRefresh_Time = 8816;
  173. const pay_order_product_id = 8817;
  174. // </editor-fold>
  175. //
  176. // <editor-fold defaultstate="collapsed" desc=" not enough 系列 ">
  177. /**
  178. * 金币不足
  179. */
  180. const notenough_gold_msg = 3014;
  181. /**
  182. * 宝石不足
  183. */
  184. const notenough_cash_msg = 3015;
  185. /**
  186. * 友情点不足
  187. */
  188. const notenough_friendshippoint = 3016;
  189. /**
  190. * 玩家荣誉值不足[荣誉值兑换]
  191. */
  192. const notenough_honour = 3032;
  193. /**
  194. * 元宝不足
  195. */
  196. const notenought_yuanbao = 3040;
  197. /**
  198. * 玩家体力值不足
  199. */
  200. const notenough_tili = 3046;
  201. /**
  202. * 晶石不足
  203. */
  204. const notenough_spar = 3046;
  205. /**
  206. * 资源点不足
  207. */
  208. const notenough_resPoint = 3047;
  209. // </editor-fold>
  210. //
  211. // <editor-fold defaultstate="collapsed" desc=" user 31xx ">
  212. /**
  213. * 玩家未登录
  214. */
  215. const user_login_err = 3101;
  216. /**
  217. * 玩家不存在
  218. */
  219. const user_no_err = 3102;
  220. /**
  221. * 玩家数据损坏
  222. */
  223. const user_data_broken_err = 3103;
  224. /**
  225. * 连续登录天数不够
  226. */
  227. const user_contigiftno_msg = 3104;
  228. /**
  229. * 已经领取连续登录礼包
  230. */
  231. const user_contigiftfalse_msg = 3105;
  232. /**
  233. * 设置新手引导进度失败
  234. */
  235. const user_settutorialscompletedfail_err = 3106;
  236. /**
  237. * 玩家等级不足
  238. */
  239. const user_levelnotenough_msg = 3107;
  240. /**
  241. * 找不到玩家的交互体数据
  242. */
  243. const user_interact_no_err = 3108;
  244. /**
  245. * 找不到玩家的分区记录
  246. */
  247. const user_zoneinfo_no_err = 3109;
  248. /**
  249. * 玩家昵称已经存在,请换一个再试
  250. */
  251. const user_nicknameexist = 3110;
  252. /**
  253. * 没有这种奖励类型
  254. */
  255. const user_reward_typeno = 3031;
  256. // </editor-fold>
  257. //
  258. // <editor-fold defaultstate="collapsed" desc=" 英雄错误码 33xx ">
  259. /**
  260. * 玩家没有这个英雄
  261. */
  262. const hero_no = 3301;
  263. /**
  264. * 找不到英雄升级消耗数据
  265. */
  266. const hero_level_const_no_err = 3302;
  267. /**
  268. * 英雄碎片不足
  269. */
  270. const hero_segment_not_enough = 3303;
  271. /**
  272. * 缺少英雄的常量数据
  273. */
  274. const hero_const_no_err = 3304;
  275. /**
  276. * 英雄强化--已经达到最大等阶
  277. */
  278. const hero_strength_maxstrengthlevel = 3305;
  279. /**
  280. * 英雄升级--已经达到当前最大等级
  281. */
  282. const hero_upgrade_maxupgradelevel = 3306;
  283. /**
  284. * 英雄升级--消耗的数据错误(道具或者卡牌不存在)
  285. */
  286. const hero_upgrade_cost = 3307;
  287. /**
  288. * 英雄升星--已经达到最大星级
  289. */
  290. const hero_star_maxstarlevel = 3308;
  291. /**
  292. * 英雄升星--消耗英雄参数错误
  293. */
  294. const hero_star_costhero = 3309;
  295. /**
  296. * 英雄升星--消耗道具数量不充足
  297. */
  298. const hero_star_notengoughitem = 3310;
  299. /**
  300. * 英雄升星--升星消耗的常量数据不存在
  301. */
  302. const hero_star_level_const_no_err = 3311;
  303. /**
  304. * 英雄升星--全局变量缺失该英雄属性对应的升星消耗道具信息
  305. */
  306. const hero_star_noglobal_costitem = 3312;
  307. /**
  308. * 英雄升星--消耗道具与消耗道具数量的常量配置不匹配
  309. */
  310. const hero_star_conststr_itemnotmathnum = 3313;
  311. /**
  312. * 英雄好感度---缺少对应好感度的消耗设置的常量数据
  313. */
  314. const hero_favor_cost_const_no = 3314;
  315. /**
  316. * 英雄好感度---解锁目标好感度参数错误
  317. */
  318. const hero_favor_targetfavor_para = 3315;
  319. /**
  320. * 英雄分解---传递消耗英雄参数错误
  321. */
  322. const hero_separate_cost_hero = 3316;
  323. /**
  324. * 英雄升阶---缺少对应等阶的消耗设置的常量数据
  325. */
  326. const hero_strength_cost_const_no = 3317;
  327. /**
  328. * 英雄技能__当前技能等级已经达到上限
  329. */
  330. const hero_upgradeSkill_maxLevel = 3318;
  331. /**
  332. * 英雄技能__该技能升级的消耗常量配置不存在
  333. */
  334. const hero_upgradeSkill_cost_const_no = 3319;
  335. /**
  336. * 英雄打分 -- 已经给次英雄打过分了
  337. */
  338. const hero_scoreit_hasscored = 3320;
  339. /**
  340. * 英雄升级——消耗的常量配置不存在
  341. */
  342. const hero_upgrade_cost_const_no = 3321;
  343. /**
  344. * 玩家已经存在一个此类的英雄
  345. */
  346. const hero_existSameHero_err = 3322;
  347. /**
  348. * 玩家神血的消耗常量数据不存在
  349. */
  350. const hero_godblood_level_const_no = 3323;
  351. /**
  352. * 玩家神血的血脉达到定级
  353. */
  354. const hero_godblood_maxlevel = 3324;
  355. /**
  356. * 玩家神血 强化,消耗道具不足
  357. */
  358. const hero_godblood_notengoughitem = 3325;
  359. /**
  360. * 玩家已经解锁
  361. */
  362. const hero_lockState = 3326;
  363. /**
  364. * 言灵已达到可装备的最大数量
  365. */
  366. const hero_yanling_full = 3327;
  367. /**
  368. * 英雄身上找不到这个言灵
  369. */
  370. const hero_yanling_notfound = 3328;
  371. /**
  372. * 言灵等级配置缺失
  373. */
  374. const hero_yanling_levelconst_no = 3329;
  375. /**
  376. * 言灵等级已达上限
  377. */
  378. const hero_yanling_levelMax = 3330;
  379. /**
  380. * 重复言灵
  381. */
  382. const hero_yanling_repeat = 3331;
  383. /**
  384. * 言灵星级达到最大值
  385. */
  386. const hero_yanling_starMax = 3332;
  387. /**
  388. * 错误的言灵
  389. */
  390. const hero_yanling_errorYanling = 3333;
  391. /**
  392. * 不能突破
  393. */
  394. const hero_yanling_canotTupo = 3334;
  395. //
  396. // </editor-fold>
  397. //
  398. // <editor-fold defaultstate="collapsed" desc=" 仓库/背包 34xx ">
  399. /**
  400. * 该目标不能放入仓库
  401. */
  402. const store_putinto = 3401;
  403. /**
  404. * 仓库没有这个道具
  405. */
  406. const store_itemno_err = 3402;
  407. /**
  408. * 道具不可使用
  409. */
  410. const store_itemcantuse = 3404;
  411. /**
  412. * 道具数量不足
  413. */
  414. const store_itemnotenough = 3405;
  415. /**
  416. * 移除道具失败!
  417. */
  418. const store_removefail = 3407;
  419. /**
  420. * 道具不能分解
  421. */
  422. const store_itemcantdecompose = 3408;
  423. /**
  424. * 装备已经在别的英雄身上装备
  425. */
  426. const store_equipWeared_err = 3409;
  427. /**
  428. * 装备没有在此英雄身上装备
  429. */
  430. const store_noequip_err = 3410;
  431. /**
  432. * 未知装备类型
  433. */
  434. const store_equip_type = 3411;
  435. /**
  436. * 言灵召唤书常量数据有误
  437. */
  438. const store_book_info = 3412;
  439. /**
  440. * 言灵进阶数据有问题
  441. */
  442. const store_yanlingGrade_cfg = 3413;
  443. /**
  444. * 言灵已经进阶至最高
  445. */
  446. const store_yanlingGrade_max = 3414;
  447. /**
  448. * 言灵包裹已满
  449. */
  450. const store_yanling_bagfull = 3415;
  451. /**
  452. * 没有该武器
  453. */
  454. const store_weapon_err = 3416;
  455. /**
  456. *
  457. */
  458. const store_GemResearchLvUp_UserLevelLimit = 3417;
  459. /**
  460. *
  461. */
  462. const store_GemComplose_ResearchLevelLimit = 3418;
  463. /**
  464. *
  465. */
  466. const store_GemComploseTuZhiNotEnough = 3419;
  467. const store_GemComploseMaterialNotEnough = 3420;
  468. const store_ComploseGemNotEnough = 3421;
  469. /**
  470. * 言灵身上没有宝石
  471. */
  472. const store_YanLingNotGem = 3422;
  473. const store_YanLingHaveGem = 3423;
  474. // </editor-fold>
  475. //
  476. // <editor-fold defaultstate="collapsed" desc=" 任务错误码 35xx系列 ">
  477. /**
  478. * 找不到任务数据
  479. */
  480. const task_no = 3501;
  481. /**
  482. * 任务进度尚未完成
  483. */
  484. const task_progress_not_complete = 3502;
  485. /**
  486. * 任务奖励已经领取
  487. */
  488. const task_reward_geted = 3503;
  489. /**
  490. * 日常任务活跃点数不足
  491. */
  492. const task_activePoint_notenough = 3504;
  493. /**
  494. * 任务卡未找到
  495. */
  496. const taskCard_no = 3510;
  497. /**
  498. * 任务卡-不可堆叠
  499. */
  500. const taskCard_no_pile = 3511;
  501. /**
  502. * 任务卡-状态错误
  503. */
  504. const taskCard_state = 3512;
  505. /**
  506. * 任务卡-不可激活多张同种类任务卡
  507. */
  508. const taskCard_active_multi = 3513;
  509. /**
  510. * 任务卡-同时激活数量达到上限(9)
  511. */
  512. const taskCard_active_max = 3514;
  513. /**
  514. * 任务卡-此卡已售罄
  515. */
  516. const taskCard_selled = 3515;
  517. /**
  518. * 任务卡-收集的道具数量尚未满足条件
  519. */
  520. const taskCard_gainItem_no = 3516;
  521. // </editor-fold>
  522. //
  523. // <editor-fold defaultstate="collapsed" desc=" 交互操作 36xx ">
  524. //
  525. // </editor-fold>
  526. //
  527. // <editor-fold defaultstate="collapsed" desc=" 好友 37xx ">
  528. /**
  529. * 不存在该好友
  530. */
  531. const friend_no_err = 3701;
  532. /**
  533. * 不存在好友的平台信息
  534. */
  535. const friend_noplat_err = 3702;
  536. /**
  537. * 已经领取该好友礼物
  538. */
  539. const friend_gift = 3703;
  540. /**
  541. * 已到达当天领取好友礼物上限
  542. */
  543. const friend_maxgift = 3704;
  544. /**
  545. * 获取不到好友礼物几率常量数据
  546. */
  547. const friend_giftrent_const_no_err = 3705;
  548. // </editor-fold>
  549. //
  550. // <editor-fold defaultstate="collapsed" desc=" 任务 38xx ">
  551. /**
  552. * 不存在该任务
  553. */
  554. const goal_const_no_err = 3801;
  555. /**
  556. * 未找到该任务信息
  557. */
  558. const goal_nogoaldata_err = 3802;
  559. /**
  560. * 任务尚未完成
  561. */
  562. const goal_notcomplete = 3803;
  563. /**
  564. * 任务奖励已领取
  565. */
  566. const goal_rewarded = 3804;
  567. // </editor-fold>
  568. //
  569. // <editor-fold defaultstate="collapsed" desc=" 活动 39xx ">
  570. /**
  571. * 不存在该活动礼包
  572. */
  573. const active_const_no_err = 3901;
  574. /**
  575. * 活动领取非法
  576. */
  577. const active_illegal = 3902;
  578. /**
  579. * 礼包已领取
  580. */
  581. const active_hasgetted = 3903;
  582. /**
  583. * 在线礼包常量数据不存在
  584. */
  585. const onlinegift_constno_err = 3904;
  586. /**
  587. * 在线礼包时间未到
  588. */
  589. const onlinegift_timenotenough = 3905;
  590. /**
  591. * 在线礼包id错误
  592. */
  593. const onlinegift_wrongid = 3906;
  594. /**
  595. * 免费抽奖类型不存在
  596. */
  597. const lottery_typenotexist = 3907;
  598. /**
  599. * 剩余免费抽奖次数不够了
  600. */
  601. const lottery_freenotenough = 3908;
  602. /**
  603. * 连续签到常量数据不存在
  604. */
  605. const checkin_const_no = 3909;
  606. /**
  607. * 连续签到活动已过期
  608. */
  609. const checkin_outofday = 3910;
  610. /**
  611. * 连续签到奖励已领取
  612. */
  613. const checkin_giftgetted = 3911;
  614. /**
  615. * 连续签到奖励礼包id不存在
  616. */
  617. const checkin_giftidno = 3912;
  618. /**
  619. * 连续签到天数不够.
  620. */
  621. const chekin_daysnotenough = 3913;
  622. /**
  623. * 完成新手引导的大礼包找不到常量数据。
  624. */
  625. const Guide_completeGiftNo = 3914;
  626. /**
  627. * 不存在的抽奖次数
  628. */
  629. const lottery_notexistLotterCount = 3915;
  630. /**
  631. * 不存在的抽奖消耗财富类型
  632. */
  633. const lottery_notexistLotterCostType = 3916;
  634. /**
  635. * 未能生成中奖物品
  636. */
  637. const lottery_noselecteditem = 3917;
  638. /**
  639. * 已经留下回归密码了
  640. */
  641. const active_returncode_leaved = 3921;
  642. /**
  643. * 密码格式不合法
  644. */
  645. const active_returncode_illegal = 3922;
  646. /**
  647. * 新手七天礼包,想要领取的礼包索引有误
  648. */
  649. const active_new7_wrongindex = 3923;
  650. /**
  651. * 活动 - 激活码 渠道错误.
  652. */
  653. const active_activecode_plat = 3924;
  654. /**
  655. * 活动 - 激活码 无效
  656. */
  657. const active_activecode_format = 3925;
  658. /**
  659. * 没有充值返利常量数据
  660. * * */
  661. const active_rechargereward_const_no = 3926;
  662. /**
  663. * 充值返利活动未开启
  664. * * */
  665. const active_rechargereward_notopen = 3927;
  666. /**
  667. * 充值返利,领取奖励,充值金额不足
  668. * * */
  669. const active_rechargereward_notenough = 3928;
  670. /**
  671. * 充值返利,领取奖励,当前开启的活动key与mem中存储的key不一致
  672. * * */
  673. const active_rechargereward_keynotsuit = 3929;
  674. /**
  675. * 充值返利,您已经领取过此奖励
  676. * * */
  677. const active_rechargereward_hasgetted = 3930;
  678. /**
  679. * 玩家充值返利数据错误
  680. * * */
  681. const active_rechargereward_userinfoerr = 3931;
  682. /**
  683. * 回归奖励已经领取
  684. */
  685. const active_returnreward_drawed = 3932;
  686. /**
  687. * 回归奖励验证失败
  688. */
  689. const active_returnreward_VerifyFailed = 3933;
  690. /**
  691. * 回归奖励验证的时候通讯失败,请稍后再试
  692. */
  693. const active_returnreward_VerifyConnectionFailed = 3934;
  694. /**
  695. * 回归奖励,这组回归密码已经被使用过啦.
  696. */
  697. const active_returnreward_codeused = 3935;
  698. /**
  699. * 预约礼包活动已经结束
  700. */
  701. const active_reserve_reward_outtime = 3936;
  702. /**
  703. * 激活码礼包已经过期
  704. */
  705. const active_activecode_outtime = 3937;
  706. /**
  707. * 开服七日活动 - 任务状态异常
  708. */
  709. const active_day7_taskstate_err = 3938;
  710. /**
  711. * 开服七日活动 - 找不到常量数据
  712. */
  713. const active_day7_const_no_err = 3939;
  714. /**
  715. * 开服七日活动 - 总天数不足
  716. */
  717. const active_day7_totaldays = 3940;
  718. /**
  719. * 开服七日活动 - 找不到任务
  720. */
  721. const active_day7_taskno_err = 3941;
  722. /**
  723. * 抽奖 - 保底奖励, 次数不满足
  724. */
  725. const lottery_baodi_times_lt = 3942;
  726. /**
  727. * 抽奖 - 卡槽尚未解锁
  728. */
  729. const err_lottery_slot_locked = 3943;
  730. /**
  731. * 抽奖 - 卡槽使用中
  732. */
  733. const err_lottery_slot_not_emputy = 3944;
  734. /**
  735. * 抽奖 - 搜索尚未结束
  736. */
  737. const err_lottery_slot_time = 3945;
  738. /**
  739. * 抽奖 - 卡槽数据异常
  740. */
  741. const err_lottery_slot_emputy = 3946;
  742. /**
  743. * 抽奖 - 卡槽已经解锁
  744. */
  745. const err_lottery_slot_unlocked = 3947;
  746. /**
  747. * 抽奖 - 达到每次次数限制
  748. */
  749. const err_lottery_daily_limit = 3948;
  750. /**
  751. * 宝箱 - 数量不足
  752. */
  753. const box_not_enough = 3950;
  754. /**
  755. * 活动 - 此活动尚未开放
  756. */
  757. const active_time = 3951;
  758. /**
  759. * 活动 - 兑换码已经使用过了
  760. */
  761. const active_activecode_used = 3952;
  762. /**
  763. * 活动不存在
  764. */
  765. const active_activeNoExistent = 3953;
  766. /**
  767. * 抽奖次数已经达到上限
  768. */
  769. const active_NewUserActiveNumLimit = 3954;
  770. // </editor-fold>
  771. //
  772. // <editor-fold defaultstate="collapsed" desc=" 战斗错误码 40xx ">
  773. /**
  774. * 关卡挑战 - 掉落奖励与后台不匹配
  775. */
  776. const err_arenas_rewardIllegal = 4003;
  777. /**
  778. * 关卡挑战 - 难度参数错误
  779. */
  780. const err_arenas_difficulty = 4004;
  781. /**
  782. * 关卡挑战记录非法
  783. */
  784. const err_arenas_logillegal = 4005;
  785. /**
  786. * 错误的关卡索引
  787. */
  788. const err_arenasgate_indexillegal = 4006;
  789. /**
  790. * 关卡挑战体力值不足,无法战斗
  791. */
  792. const err_arenasgate_nocount = 4007;
  793. /**
  794. * 战场解锁星数不足,无法扫荡该关卡
  795. */
  796. const err_arenas_unlockstarnotenough = 4008;
  797. /**
  798. * 关卡的挑战次数已达上限
  799. */
  800. const err_arenas_normalgate_numno = 4009;
  801. /**
  802. * 错误的扫荡次数
  803. */
  804. const err_arenasgate_errSweepCount = 4010;
  805. /**
  806. * 关卡星星奖励的常量数据不存在!
  807. */
  808. const err_arenas_starreward_const_no = 4011;
  809. /**
  810. * 关卡星星奖励--奖励已经领取
  811. */
  812. const err_arenas_hasgetstarreward = 4012;
  813. /**
  814. * 关卡星星奖励--星星数量不足无法领取奖励
  815. */
  816. const err_arenas_starreward_starNotEnough = 4013;
  817. /**
  818. * 无尽关卡模式——常量数据丢失
  819. */
  820. const err_gateForever_const_no = 4014;
  821. /**
  822. * 无尽关卡模式—挑战次数已达上限
  823. */
  824. const err_gateForever_countIsFull = 4015;
  825. /**
  826. * 无尽关卡模式—挑战次数非法
  827. */
  828. const err_gateForever_countillegal = 4016;
  829. /**
  830. * 副本开启中
  831. */
  832. const carbon_opened = 4017;
  833. /**
  834. * 副本未开启
  835. */
  836. const carbon_closed = 4018;
  837. /**
  838. * 副本挑战的关卡索引错误
  839. */
  840. const carbon_gateIndex = 4019;
  841. /**
  842. * 副本-难度等级错误
  843. */
  844. const carbon_wrongdifficult = 4020;
  845. /**
  846. * 竞技场 - 指定的pvp对手不存在
  847. */
  848. const pvp_wrongMather = 4021;
  849. /**
  850. * 竞技场 - 刷新过于频繁
  851. */
  852. const pvp_refresh_time = 4022;
  853. /**
  854. * 竞技场 - 错误的体力充值数量
  855. */
  856. const pvp_tili_chargenum = 4023;
  857. /**
  858. * 竞技场 - 挑战票不足.
  859. */
  860. const pvp_no_tickets = 4024;
  861. /**
  862. * 竞技场 - 刷新对手花费数据对不上.
  863. */
  864. const pvp_refresh_cost_ilegal = 4030;
  865. /**
  866. * 竞技场 - 刷新对手已达次数上限
  867. */
  868. const pvp_refresh_max = 4029;
  869. /**
  870. * 竞技场 - 挑战票购买, 跟预期的值对不上
  871. */
  872. const pvp_ticket_cost_ilegal = 4028;
  873. /**
  874. * 竞技场 - 道具已售罄
  875. */
  876. const pvp_item_soldout = 4027;
  877. /**
  878. * 竞技场 - 活跃值不够
  879. */
  880. const pvp_coinnotenough = 4026;
  881. /**
  882. * 剧情关卡 - 剧情关卡不能重复挑战,只能挑战一次
  883. */
  884. const story_repeatfight = 4025;
  885. /**
  886. * 剧情关卡 - 星数奖励领取条件不够
  887. */
  888. const err_arenas_starrwd_star = 4031;
  889. // </editor-fold>
  890. //
  891. // <editor-fold defaultstate="collapsed" desc=" 排行榜错误码 41xx ">
  892. /**
  893. * 排行榜 - 战斗力解锁条件尚未达成
  894. */
  895. const rank_fpower_unlocked = 4101;
  896. /**
  897. * 排行榜 - 奖励已经领取了
  898. */
  899. const rank_reward_hasgetted = 4102;
  900. /**
  901. * 排行榜 - 通关帮奖励解锁条件尚未达成
  902. */
  903. const rank_passsgate_unlocked = 4103;
  904. // </editor-fold>
  905. //
  906. // <editor-fold defaultstate="collapsed" desc=" 邮件错误码 42xx ">
  907. /**
  908. * 邮件 - 错误的邮件id
  909. */
  910. const email_wrongid = 4201;
  911. /**
  912. * 邮件 - 未找到指定邮件
  913. */
  914. const email_not_found = 4202;
  915. /**
  916. * 邮件 - 不存在附件
  917. */
  918. const email_no_appendix = 4203;
  919. /**
  920. * 邮件 - 附件已领取
  921. */
  922. const email_appendix_drawed = 4204;
  923. // </editor-fold>
  924. //
  925. // <editor-fold defaultstate="collapsed" desc="战斗错误码">
  926. //
  927. /**
  928. * 无尽塔 - 错误的关卡索引
  929. */
  930. const Fight_endlessTower_index = 4341;
  931. //
  932. // </editor-fold>
  933. //
  934. // <editor-fold defaultstate="collapsed" desc=" 拍卖 47xx ">
  935. /**
  936. * 拍卖物品的常量数据不存在
  937. */
  938. const auction_const_no = 4701;
  939. /**
  940. * 当天拍卖物品的数据不存在
  941. */
  942. const auction_curdaynotexist = 4702;
  943. /**
  944. * 竞价的时候超过时间限制
  945. */
  946. const auction_timeout = 4703;
  947. /**
  948. * 拍卖一件不在拍品列表中的物品
  949. */
  950. const auction_noexistautionItem = 4704;
  951. /**
  952. * 拍卖一件不在拍品列表中的物品
  953. */
  954. const auction_pricelowthancurprice = 4705;
  955. /**
  956. * 拍品尚未开始拍卖
  957. */
  958. const auction_beforstart = 4706;
  959. /**
  960. * 拍品已经结束拍卖
  961. */
  962. const auction_end = 4707;
  963. /**
  964. * 出价低于当前价
  965. */
  966. const auction_failprice = 4708;
  967. // </editor-fold>
  968. //
  969. // <editor-fold defaultstate="collapsed" desc="公会错误码 - 48xx开始">
  970. /**
  971. * 玩家等级不足
  972. */
  973. const err_guild_userlevel = 4800;
  974. /**
  975. * 您已经属于一个公会成员了.
  976. */
  977. const err_guild_userhasbeenaguildmember = 4801;
  978. /**
  979. * 解散公会后的24小时冷却时间尚未过去.
  980. */
  981. const err_guild_dissmisscodingtime = 4802;
  982. /**
  983. * 同名公会已存在
  984. */
  985. const err_guild_nameexists = 4803;
  986. /**
  987. * 创建公会时所传公会名称参数为空.
  988. */
  989. const err_guild_nameEmputy = 4804;
  990. /**
  991. * 金币不足
  992. */
  993. const err_msg_goldnotenough = 4805;
  994. /**
  995. * 找不到公会数据
  996. */
  997. const err_guild_guildinfono = 4806;
  998. /**
  999. * 成员已满
  1000. */
  1001. const err_guild_memberfull = 4807;
  1002. /**
  1003. * 申请队列已满
  1004. */
  1005. const err_guild_applyListFull = 4808;
  1006. /**
  1007. * 公会未开启一键加入功能
  1008. */
  1009. const err_guild_quickinclosed = 4809;
  1010. /**
  1011. * 玩家不属于此公会
  1012. */
  1013. const err_guild_usernotguildmember = 4810;
  1014. /**
  1015. * 找不到玩家的公会信息
  1016. */
  1017. const err_guild_userguildinfono = 4811;
  1018. /**
  1019. * 玩家不是该公会的会长或是干部
  1020. */
  1021. const err_guild_usernotchairman = 4812;
  1022. /**
  1023. * 解散工会的时候, 公会不为空
  1024. */
  1025. const err_guild_notEmputy = 4813;
  1026. /**
  1027. * 会长不能开除自己.
  1028. */
  1029. const err_guild_cannotfireyourself = 4814;
  1030. /**
  1031. * 申请信息未找到
  1032. */
  1033. const err_guild_appmsgnotfount = 4815;
  1034. /**
  1035. * 申请信息已经处理过了
  1036. */
  1037. const err_guild_applymsgdealed = 4816;
  1038. /**
  1039. * 玩家不存在
  1040. */
  1041. const err_user_no = 4817;
  1042. /**
  1043. * 无权限
  1044. */
  1045. const err_guild_nopermission = 4818;
  1046. /**
  1047. * 副会长名额已满
  1048. */
  1049. const err_guild_viceChairmanFull = 4819;
  1050. // /**
  1051. // * 操作码非法
  1052. // */
  1053. // const err_msg_cmd = 4820;
  1054. /**
  1055. * 徽章不能为null
  1056. */
  1057. const err_guild_imgEmputy = 4821;
  1058. /**
  1059. * 不能删除会长
  1060. */
  1061. const err_guild_cannotfireychairman = 4822;
  1062. /**
  1063. * 下一任会长必须是本公会的会员
  1064. */
  1065. // const err_guild_lastchairmanidnoexist = 4823;
  1066. /**
  1067. * 玩家已经是该职位
  1068. */
  1069. const err_guild_positionconflict = 4824;
  1070. /**
  1071. * 干部名额已满
  1072. */
  1073. const err_guild_OfficermanFull = 4825;
  1074. /**
  1075. * 没有限权设置此职位
  1076. */
  1077. const err_guild_cannotsetpositioncon = 4826;
  1078. /**
  1079. * 申请信息已经存在请稍候在申请
  1080. */
  1081. const err_guild_applymsgalwaysexist = 4827;
  1082. /**
  1083. * 申请信息被拒接
  1084. */
  1085. const err_guild_applymsgrejected = 4828;
  1086. /**
  1087. * 会长登陆时间信息发生改变无法弹劾,请刷新数据
  1088. */
  1089. const err_guild_notsatisfiedaccusecondition = 4829;
  1090. /**
  1091. * 不在弹劾有效时间内
  1092. */
  1093. const err_guild_noaccusevalidtimeperiod = 4830;
  1094. /**
  1095. * 弹劾 冷却中请稍候在弹劾
  1096. */
  1097. const err_guild_accusecooling = 4831;
  1098. /**
  1099. * 不允许申请加入该公会
  1100. */
  1101. const err_guild_noallowaddguild = 4832;
  1102. /**
  1103. * 会长没有被弹劾
  1104. */
  1105. const err_guild_chairmannoaccused = 4833;
  1106. /**
  1107. * 不允许反复弹劾
  1108. */
  1109. const err_guild_noallowagainaccuse = 4834;
  1110. /**
  1111. * 请求捐献数据不能为null
  1112. */
  1113. const err_guild_requestdonatecannotnull = 4835;
  1114. /**
  1115. * 请求捐献 时间不到
  1116. */
  1117. const err_guild_lessthannextrequestdonate = 4836;
  1118. /**
  1119. * 没有卡牌常量数据
  1120. */
  1121. const err_guild_nosegmentconst = 4837; //这个暂时用着,卡牌那应该有这个错误码
  1122. /**
  1123. * 不能请求该类型的卡牌
  1124. */
  1125. const err_guild_thiscardcannotrequestordonate = 4838; //这个暂时用着,卡牌那应该有这个错误码
  1126. /**
  1127. * 请求卡牌数量过多
  1128. */
  1129. const err_guild_requestcardnumtomuch = 4839; //这个暂时用着,卡牌那应该有这个错误码
  1130. /**
  1131. * 玩家没有足够的卡牌可以捐献
  1132. */
  1133. const err_guild_noenoughcardinfo = 4840; //这个暂时用着,卡牌那应该有这个错误码
  1134. /**
  1135. * 卡牌类型不一致
  1136. */
  1137. const err_guild_cardtypeinconformity = 4841;
  1138. /**
  1139. * 今天捐献卡牌数量已经达到最大值
  1140. */
  1141. const err_guild_donatecardnumreachlimit = 4842;
  1142. /**
  1143. * 已经超过捐献时间无法捐献
  1144. */
  1145. const err_guild_overdonatetime = 4843;
  1146. /**
  1147. * 玩家背包中没有该类型的碎片
  1148. */
  1149. const err_guild_usersegementnothechip = 4844;
  1150. /**
  1151. * 英雄合成碎片与参数id不一致
  1152. */
  1153. const err_guild_herochiptypeinconformity = 4846;
  1154. /**
  1155. * 不存在该英雄
  1156. */
  1157. const err_guild_nohero = 4847;
  1158. /**
  1159. * 该贡献度礼包没有开放
  1160. */
  1161. const err_guild_contributionGiftnoopen = 4848;
  1162. /**
  1163. * 该公会钻石礼包没有开放
  1164. */
  1165. const err_guild_cashGiftnoopen = 4849;
  1166. /**
  1167. * 贡献度不够
  1168. */
  1169. const err_guild_contributionnosatisfy = 4850;
  1170. /**
  1171. * 缺少礼包常量数据
  1172. */
  1173. const err_guild_noguildgiftconst = 4851;
  1174. /**
  1175. * 公会消息没有该卡牌的信息
  1176. */
  1177. const err_guild_guildjournalnothechipinfo = 4852;
  1178. /**
  1179. * 公会邮件内容不能为null
  1180. */
  1181. const err_guild_mailcontentcannotbenull = 4853;
  1182. /**
  1183. * 公会公告编辑冷却时间中
  1184. */
  1185. const err_guild_AnnouncementEditCooling = 4854;
  1186. /**
  1187. * 公会战 已经存在邀请数据,不能再次邀请
  1188. */
  1189. const err_guild_fightInvitealreadyexisted = 4855;
  1190. /**
  1191. * 公会战 邀请信息不存在
  1192. */
  1193. const err_guild_fightInvitenoexisted = 4856;
  1194. /**
  1195. * 公会战 在战斗中
  1196. */
  1197. const err_guild_fighting = 4857;
  1198. /**
  1199. * 公会战 在战斗中
  1200. */
  1201. const err_guild_applyconditionnoenough = 4858;
  1202. // </editor-fold>
  1203. //
  1204. // <editor-fold defaultstate="collapsed" desc=" 商城错误码 49xx">
  1205. /**
  1206. * 限购礼包-购买数量已达上限
  1207. */
  1208. const shop_limit_max = 4901;
  1209. /**
  1210. * 月卡已购买,失效前不可再次购买
  1211. */
  1212. const shop_monthlyvip_buyed = 4902;
  1213. // </editor-fold>
  1214. // <editor-fold defaultstate="collapsed" desc=" 学院错误码 51xx">
  1215. /**
  1216. * 不存在该任务卡
  1217. */
  1218. const college_notExistTaskCard = 5101;
  1219. /**
  1220. * 任务卡状态错误
  1221. */
  1222. const college_TaskCardStateError = 5202;
  1223. /**
  1224. * 一个年级下的课程数量错误
  1225. */
  1226. const college_courseNumError = 5203;
  1227. /**
  1228. * 一个课程下的任务卡数量错误
  1229. */
  1230. const college_taskCardNumError = 5204;
  1231. /**
  1232. *
  1233. */
  1234. const college_taskScoreRewardRepeatReceive = 5205;
  1235. const college_CourseRewardRepeatReceive = 5206;
  1236. /**
  1237. * 没有解锁
  1238. */
  1239. const college_CourseNotUnlocked = 5207;
  1240. // </editor-fold>
  1241. //
  1242. // <editor-fold defaultstate="collapsed" desc=" 反射方法 ">
  1243. /**
  1244. * 辅助方法, 将所有错误码信息转换到CSV文本中.
  1245. * 用法: 先在本文件中用ctrl + H 全部替换掉 'c onst ' -> 's tatic $'
  1246. * 然后再调用本方法,即可在同目录下生成ErrCode.txt, 里面包含了所需信息.
  1247. * @throws \Exception
  1248. * @author gwang
  1249. */
  1250. static function L() {
  1251. $class = new \ReflectionClass(__CLASS__); # 建立这个类的反射对象
  1252. $properties = $class->getProperties(\ReflectionProperty::IS_STATIC); # 拉取所有静态属性
  1253. $fileName = __DIR__ . "/ErrCode.txt"; # 输出文件名
  1254. $fd = fopen($fileName, "w");
  1255. if (false === $fd) { # 打开文件失败
  1256. throw new \Exception("打开$fileName 失败");
  1257. }
  1258. foreach ($properties as &$p) {
  1259. $d = preg_replace('/[\*|\/|\s+]/', '', $p->getDocComment()); # 处理下注释
  1260. $type = (strpos($p->getName(), 'err') === false ? 0 : 1); # errorType: 0 继续, 1 重启
  1261. $n = fputs($fd, $p->getName() . ";" . $p->getValue() . ";$type;$d" . PHP_EOL); # 写入文件
  1262. if (false === $n) { # 写入时失败
  1263. throw new Exception("写入$fileName 时失败");
  1264. }
  1265. }
  1266. fclose($fd);
  1267. }
  1268. // </editor-fold>
  1269. }
  1270. //ErrCode::L();