ErrCode.php 33 KB

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