ErrCode.php 32 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615
  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. // </editor-fold>
  478. //
  479. // <editor-fold defaultstate="collapsed" desc=" 任务错误码 35xx系列 ">
  480. /**
  481. * 找不到任务数据
  482. */
  483. const task_no = 3501;
  484. /**
  485. * 任务进度尚未完成
  486. */
  487. const task_progress_not_complete = 3502;
  488. /**
  489. * 任务奖励已经领取
  490. */
  491. const task_reward_geted = 3503;
  492. /**
  493. * 日常任务活跃点数不足
  494. */
  495. const task_activePoint_notenough = 3504;
  496. /**
  497. * 任务卡未找到
  498. */
  499. const taskCard_no = 3510;
  500. /**
  501. * 任务卡-不可堆叠
  502. */
  503. const taskCard_no_pile = 3511;
  504. /**
  505. * 任务卡-状态错误
  506. */
  507. const taskCard_state = 3512;
  508. /**
  509. * 任务卡-不可激活多张同种类任务卡
  510. */
  511. const taskCard_active_multi = 3513;
  512. /**
  513. * 任务卡-同时激活数量达到上限(9)
  514. */
  515. const taskCard_active_max = 3514;
  516. /**
  517. * 任务卡-此卡已售罄
  518. */
  519. const taskCard_selled = 3515;
  520. /**
  521. * 任务卡-收集的道具数量尚未满足条件
  522. */
  523. const taskCard_gainItem_no = 3516;
  524. // </editor-fold>
  525. //
  526. // <editor-fold defaultstate="collapsed" desc=" 交互操作 36xx ">
  527. //
  528. // </editor-fold>
  529. //
  530. // <editor-fold defaultstate="collapsed" desc=" 好友 37xx ">
  531. /**
  532. * 不存在该好友
  533. */
  534. const friend_no_err = 3701;
  535. /**
  536. * 不存在好友的平台信息
  537. */
  538. const friend_noplat_err = 3702;
  539. /**
  540. * 已经领取该好友礼物
  541. */
  542. const friend_gift = 3703;
  543. /**
  544. * 已到达当天领取好友礼物上限
  545. */
  546. const friend_maxgift = 3704;
  547. /**
  548. * 获取不到好友礼物几率常量数据
  549. */
  550. const friend_giftrent_const_no_err = 3705;
  551. // </editor-fold>
  552. //
  553. // <editor-fold defaultstate="collapsed" desc=" 任务 38xx ">
  554. /**
  555. * 不存在该任务
  556. */
  557. const goal_const_no_err = 3801;
  558. /**
  559. * 未找到该任务信息
  560. */
  561. const goal_nogoaldata_err = 3802;
  562. /**
  563. * 任务尚未完成
  564. */
  565. const goal_notcomplete = 3803;
  566. /**
  567. * 任务奖励已领取
  568. */
  569. const goal_rewarded = 3804;
  570. // </editor-fold>
  571. //
  572. // <editor-fold defaultstate="collapsed" desc=" 活动 39xx ">
  573. /**
  574. * 不存在该活动礼包
  575. */
  576. const active_const_no_err = 3901;
  577. /**
  578. * 活动领取非法
  579. */
  580. const active_illegal = 3902;
  581. /**
  582. * 礼包已领取
  583. */
  584. const active_hasgetted = 3903;
  585. /**
  586. * 在线礼包常量数据不存在
  587. */
  588. const onlinegift_constno_err = 3904;
  589. /**
  590. * 在线礼包时间未到
  591. */
  592. const onlinegift_timenotenough = 3905;
  593. /**
  594. * 在线礼包id错误
  595. */
  596. const onlinegift_wrongid = 3906;
  597. /**
  598. * 免费抽奖类型不存在
  599. */
  600. const lottery_typenotexist = 3907;
  601. /**
  602. * 剩余免费抽奖次数不够了
  603. */
  604. const lottery_freenotenough = 3908;
  605. /**
  606. * 连续签到常量数据不存在
  607. */
  608. const checkin_const_no = 3909;
  609. /**
  610. * 连续签到活动已过期
  611. */
  612. const checkin_outofday = 3910;
  613. /**
  614. * 连续签到奖励已领取
  615. */
  616. const checkin_giftgetted = 3911;
  617. /**
  618. * 连续签到奖励礼包id不存在
  619. */
  620. const checkin_giftidno = 3912;
  621. /**
  622. * 连续签到天数不够.
  623. */
  624. const chekin_daysnotenough = 3913;
  625. /**
  626. * 完成新手引导的大礼包找不到常量数据。
  627. */
  628. const Guide_completeGiftNo = 3914;
  629. /**
  630. * 不存在的抽奖次数
  631. */
  632. const lottery_notexistLotterCount = 3915;
  633. /**
  634. * 不存在的抽奖消耗财富类型
  635. */
  636. const lottery_notexistLotterCostType = 3916;
  637. /**
  638. * 未能生成中奖物品
  639. */
  640. const lottery_noselecteditem = 3917;
  641. /**
  642. * 已经留下回归密码了
  643. */
  644. const active_returncode_leaved = 3921;
  645. /**
  646. * 密码格式不合法
  647. */
  648. const active_returncode_illegal = 3922;
  649. /**
  650. * 新手七天礼包,想要领取的礼包索引有误
  651. */
  652. const active_new7_wrongindex = 3923;
  653. /**
  654. * 活动 - 激活码 渠道错误.
  655. */
  656. const active_activecode_plat = 3924;
  657. /**
  658. * 活动 - 激活码 无效
  659. */
  660. const active_activecode_format = 3925;
  661. /**
  662. * 没有充值返利常量数据
  663. * * */
  664. const active_rechargereward_const_no = 3926;
  665. /**
  666. * 充值返利活动未开启
  667. * * */
  668. const active_rechargereward_notopen = 3927;
  669. /**
  670. * 充值返利,领取奖励,充值金额不足
  671. * * */
  672. const active_rechargereward_notenough = 3928;
  673. /**
  674. * 充值返利,领取奖励,当前开启的活动key与mem中存储的key不一致
  675. * * */
  676. const active_rechargereward_keynotsuit = 3929;
  677. /**
  678. * 充值返利,您已经领取过此奖励
  679. * * */
  680. const active_rechargereward_hasgetted = 3930;
  681. /**
  682. * 玩家充值返利数据错误
  683. * * */
  684. const active_rechargereward_userinfoerr = 3931;
  685. /**
  686. * 回归奖励已经领取
  687. */
  688. const active_returnreward_drawed = 3932;
  689. /**
  690. * 回归奖励验证失败
  691. */
  692. const active_returnreward_VerifyFailed = 3933;
  693. /**
  694. * 回归奖励验证的时候通讯失败,请稍后再试
  695. */
  696. const active_returnreward_VerifyConnectionFailed = 3934;
  697. /**
  698. * 回归奖励,这组回归密码已经被使用过啦.
  699. */
  700. const active_returnreward_codeused = 3935;
  701. /**
  702. * 预约礼包活动已经结束
  703. */
  704. const active_reserve_reward_outtime = 3936;
  705. /**
  706. * 激活码礼包已经过期
  707. */
  708. const active_activecode_outtime = 3937;
  709. /**
  710. * 开服七日活动 - 任务状态异常
  711. */
  712. const active_day7_taskstate_err = 3938;
  713. /**
  714. * 开服七日活动 - 找不到常量数据
  715. */
  716. const active_day7_const_no_err = 3939;
  717. /**
  718. * 开服七日活动 - 总天数不足
  719. */
  720. const active_day7_totaldays = 3940;
  721. /**
  722. * 开服七日活动 - 找不到任务
  723. */
  724. const active_day7_taskno_err = 3941;
  725. /**
  726. * 抽奖 - 保底奖励, 次数不满足
  727. */
  728. const lottery_baodi_times_lt = 3942;
  729. /**
  730. * 抽奖 - 卡槽尚未解锁
  731. */
  732. const err_lottery_slot_locked = 3943;
  733. /**
  734. * 抽奖 - 卡槽使用中
  735. */
  736. const err_lottery_slot_not_emputy = 3944;
  737. /**
  738. * 抽奖 - 搜索尚未结束
  739. */
  740. const err_lottery_slot_time = 3945;
  741. /**
  742. * 抽奖 - 卡槽数据异常
  743. */
  744. const err_lottery_slot_emputy = 3946;
  745. /**
  746. * 抽奖 - 卡槽已经解锁
  747. */
  748. const err_lottery_slot_unlocked = 3947;
  749. /**
  750. * 抽奖 - 达到每次次数限制
  751. */
  752. const err_lottery_daily_limit = 3948;
  753. /**
  754. * 宝箱 - 数量不足
  755. */
  756. const box_not_enough = 3950;
  757. /**
  758. * 活动 - 此活动尚未开放
  759. */
  760. const active_time = 3951;
  761. /**
  762. * 活动 - 兑换码已经使用过了
  763. */
  764. const active_activecode_used = 3952;
  765. /**
  766. * 活动不存在
  767. */
  768. const active_activeNoExistent = 3953;
  769. /**
  770. * 抽奖次数已经达到上限
  771. */
  772. const active_NewUserActiveNumLimit = 3954;
  773. // </editor-fold>
  774. //
  775. // <editor-fold defaultstate="collapsed" desc=" 战斗错误码 40xx ">
  776. /**
  777. * 关卡挑战 - 掉落奖励与后台不匹配
  778. */
  779. const err_arenas_rewardIllegal = 4003;
  780. /**
  781. * 关卡挑战 - 难度参数错误
  782. */
  783. const err_arenas_difficulty = 4004;
  784. /**
  785. * 关卡挑战记录非法
  786. */
  787. const err_arenas_logillegal = 4005;
  788. /**
  789. * 错误的关卡索引
  790. */
  791. const err_arenasgate_indexillegal = 4006;
  792. /**
  793. * 关卡挑战体力值不足,无法战斗
  794. */
  795. const err_arenasgate_nocount = 4007;
  796. /**
  797. * 战场解锁星数不足,无法扫荡该关卡
  798. */
  799. const err_arenas_unlockstarnotenough = 4008;
  800. /**
  801. * 关卡的挑战次数已达上限
  802. */
  803. const err_arenas_normalgate_numno = 4009;
  804. /**
  805. * 错误的扫荡次数
  806. */
  807. const err_arenasgate_errSweepCount = 4010;
  808. /**
  809. * 关卡星星奖励的常量数据不存在!
  810. */
  811. const err_arenas_starreward_const_no = 4011;
  812. /**
  813. * 关卡星星奖励--奖励已经领取
  814. */
  815. const err_arenas_hasgetstarreward = 4012;
  816. /**
  817. * 关卡星星奖励--星星数量不足无法领取奖励
  818. */
  819. const err_arenas_starreward_starNotEnough = 4013;
  820. /**
  821. * 无尽关卡模式——常量数据丢失
  822. */
  823. const err_gateForever_const_no = 4014;
  824. /**
  825. * 无尽关卡模式—挑战次数已达上限
  826. */
  827. const err_gateForever_countIsFull = 4015;
  828. /**
  829. * 无尽关卡模式—挑战次数非法
  830. */
  831. const err_gateForever_countillegal = 4016;
  832. /**
  833. * 副本开启中
  834. */
  835. const carbon_opened = 4017;
  836. /**
  837. * 副本未开启
  838. */
  839. const carbon_closed = 4018;
  840. /**
  841. * 副本挑战的关卡索引错误
  842. */
  843. const carbon_gateIndex = 4019;
  844. /**
  845. * 副本-难度等级错误
  846. */
  847. const carbon_wrongdifficult = 4020;
  848. /**
  849. * 竞技场 - 指定的pvp对手不存在
  850. */
  851. const pvp_wrongMather = 4021;
  852. /**
  853. * 竞技场 - 刷新过于频繁
  854. */
  855. const pvp_refresh_time = 4022;
  856. /**
  857. * 竞技场 - 错误的体力充值数量
  858. */
  859. const pvp_tili_chargenum = 4023;
  860. /**
  861. * 竞技场 - 挑战票不足.
  862. */
  863. const pvp_no_tickets = 4024;
  864. /**
  865. * 竞技场 - 刷新对手花费数据对不上.
  866. */
  867. const pvp_refresh_cost_ilegal = 4030;
  868. /**
  869. * 竞技场 - 刷新对手已达次数上限
  870. */
  871. const pvp_refresh_max = 4029;
  872. /**
  873. * 竞技场 - 挑战票购买, 跟预期的值对不上
  874. */
  875. const pvp_ticket_cost_ilegal = 4028;
  876. /**
  877. * 竞技场 - 道具已售罄
  878. */
  879. const pvp_item_soldout = 4027;
  880. /**
  881. * 竞技场 - 活跃值不够
  882. */
  883. const pvp_coinnotenough = 4026;
  884. /**
  885. * 剧情关卡 - 剧情关卡不能重复挑战,只能挑战一次
  886. */
  887. const story_repeatfight = 4025;
  888. /**
  889. * 剧情关卡 - 星数奖励领取条件不够
  890. */
  891. const err_arenas_starrwd_star = 4031;
  892. // </editor-fold>
  893. //
  894. // <editor-fold defaultstate="collapsed" desc=" 排行榜错误码 41xx ">
  895. /**
  896. * 排行榜 - 战斗力解锁条件尚未达成
  897. */
  898. const rank_fpower_unlocked = 4101;
  899. /**
  900. * 排行榜 - 奖励已经领取了
  901. */
  902. const rank_reward_hasgetted = 4102;
  903. /**
  904. * 排行榜 - 通关帮奖励解锁条件尚未达成
  905. */
  906. const rank_passsgate_unlocked = 4103;
  907. // </editor-fold>
  908. //
  909. // <editor-fold defaultstate="collapsed" desc=" 邮件错误码 42xx ">
  910. /**
  911. * 邮件 - 错误的邮件id
  912. */
  913. const email_wrongid = 4201;
  914. /**
  915. * 邮件 - 未找到指定邮件
  916. */
  917. const email_not_found = 4202;
  918. /**
  919. * 邮件 - 不存在附件
  920. */
  921. const email_no_appendix = 4203;
  922. /**
  923. * 邮件 - 附件已领取
  924. */
  925. const email_appendix_drawed = 4204;
  926. // </editor-fold>
  927. //
  928. // <editor-fold defaultstate="collapsed" desc="战斗错误码">
  929. //
  930. /**
  931. * 无尽塔 - 错误的关卡索引
  932. */
  933. const Fight_endlessTower_index = 4341;
  934. //
  935. // </editor-fold>
  936. //
  937. // <editor-fold defaultstate="collapsed" desc=" 拍卖 47xx ">
  938. /**
  939. * 拍卖物品的常量数据不存在
  940. */
  941. const auction_const_no = 4701;
  942. /**
  943. * 当天拍卖物品的数据不存在
  944. */
  945. const auction_curdaynotexist = 4702;
  946. /**
  947. * 竞价的时候超过时间限制
  948. */
  949. const auction_timeout = 4703;
  950. /**
  951. * 拍卖一件不在拍品列表中的物品
  952. */
  953. const auction_noexistautionItem = 4704;
  954. /**
  955. * 拍卖一件不在拍品列表中的物品
  956. */
  957. const auction_pricelowthancurprice = 4705;
  958. /**
  959. * 拍品尚未开始拍卖
  960. */
  961. const auction_beforstart = 4706;
  962. /**
  963. * 拍品已经结束拍卖
  964. */
  965. const auction_end = 4707;
  966. /**
  967. * 出价低于当前价
  968. */
  969. const auction_failprice = 4708;
  970. // </editor-fold>
  971. //
  972. // <editor-fold defaultstate="collapsed" desc="公会错误码 - 48xx开始">
  973. /**
  974. * 玩家等级不足
  975. */
  976. const err_guild_userlevel = 4800;
  977. /**
  978. * 您已经属于一个公会成员了.
  979. */
  980. const err_guild_userhasbeenaguildmember = 4801;
  981. /**
  982. * 解散公会后的24小时冷却时间尚未过去.
  983. */
  984. const err_guild_dissmisscodingtime = 4802;
  985. /**
  986. * 同名公会已存在
  987. */
  988. const err_guild_nameexists = 4803;
  989. /**
  990. * 创建公会时所传公会名称参数为空.
  991. */
  992. const err_guild_nameEmputy = 4804;
  993. /**
  994. * 金币不足
  995. */
  996. const err_msg_goldnotenough = 4805;
  997. /**
  998. * 找不到公会数据
  999. */
  1000. const err_guild_guildinfono = 4806;
  1001. /**
  1002. * 成员已满
  1003. */
  1004. const err_guild_memberfull = 4807;
  1005. /**
  1006. * 申请队列已满
  1007. */
  1008. const err_guild_applyListFull = 4808;
  1009. /**
  1010. * 公会未开启一键加入功能
  1011. */
  1012. const err_guild_quickinclosed = 4809;
  1013. /**
  1014. * 玩家不属于此公会
  1015. */
  1016. const err_guild_usernotguildmember = 4810;
  1017. /**
  1018. * 找不到玩家的公会信息
  1019. */
  1020. const err_guild_userguildinfono = 4811;
  1021. /**
  1022. * 玩家不是该公会的会长或是干部
  1023. */
  1024. const err_guild_usernotchairman = 4812;
  1025. /**
  1026. * 解散工会的时候, 公会不为空
  1027. */
  1028. const err_guild_notEmputy = 4813;
  1029. /**
  1030. * 会长不能开除自己.
  1031. */
  1032. const err_guild_cannotfireyourself = 4814;
  1033. /**
  1034. * 申请信息未找到
  1035. */
  1036. const err_guild_appmsgnotfount = 4815;
  1037. /**
  1038. * 申请信息已经处理过了
  1039. */
  1040. const err_guild_applymsgdealed = 4816;
  1041. /**
  1042. * 玩家不存在
  1043. */
  1044. const err_user_no = 4817;
  1045. /**
  1046. * 无权限
  1047. */
  1048. const err_guild_nopermission = 4818;
  1049. /**
  1050. * 副会长名额已满
  1051. */
  1052. const err_guild_viceChairmanFull = 4819;
  1053. // /**
  1054. // * 操作码非法
  1055. // */
  1056. // const err_msg_cmd = 4820;
  1057. /**
  1058. * 徽章不能为null
  1059. */
  1060. const err_guild_imgEmputy = 4821;
  1061. /**
  1062. * 不能删除会长
  1063. */
  1064. const err_guild_cannotfireychairman = 4822;
  1065. /**
  1066. * 下一任会长必须是本公会的会员
  1067. */
  1068. // const err_guild_lastchairmanidnoexist = 4823;
  1069. /**
  1070. * 玩家已经是该职位
  1071. */
  1072. const err_guild_positionconflict = 4824;
  1073. /**
  1074. * 干部名额已满
  1075. */
  1076. const err_guild_OfficermanFull = 4825;
  1077. /**
  1078. * 没有限权设置此职位
  1079. */
  1080. const err_guild_cannotsetpositioncon = 4826;
  1081. /**
  1082. * 申请信息已经存在请稍候在申请
  1083. */
  1084. const err_guild_applymsgalwaysexist = 4827;
  1085. /**
  1086. * 申请信息被拒接
  1087. */
  1088. const err_guild_applymsgrejected = 4828;
  1089. /**
  1090. * 会长登陆时间信息发生改变无法弹劾,请刷新数据
  1091. */
  1092. const err_guild_notsatisfiedaccusecondition = 4829;
  1093. /**
  1094. * 不在弹劾有效时间内
  1095. */
  1096. const err_guild_noaccusevalidtimeperiod = 4830;
  1097. /**
  1098. * 弹劾 冷却中请稍候在弹劾
  1099. */
  1100. const err_guild_accusecooling = 4831;
  1101. /**
  1102. * 不允许申请加入该公会
  1103. */
  1104. const err_guild_noallowaddguild = 4832;
  1105. /**
  1106. * 会长没有被弹劾
  1107. */
  1108. const err_guild_chairmannoaccused = 4833;
  1109. /**
  1110. * 不允许反复弹劾
  1111. */
  1112. const err_guild_noallowagainaccuse = 4834;
  1113. /**
  1114. * 请求捐献数据不能为null
  1115. */
  1116. const err_guild_requestdonatecannotnull = 4835;
  1117. /**
  1118. * 请求捐献 时间不到
  1119. */
  1120. const err_guild_lessthannextrequestdonate = 4836;
  1121. /**
  1122. * 没有卡牌常量数据
  1123. */
  1124. const err_guild_nosegmentconst = 4837; //这个暂时用着,卡牌那应该有这个错误码
  1125. /**
  1126. * 不能请求该类型的卡牌
  1127. */
  1128. const err_guild_thiscardcannotrequestordonate = 4838; //这个暂时用着,卡牌那应该有这个错误码
  1129. /**
  1130. * 请求卡牌数量过多
  1131. */
  1132. const err_guild_requestcardnumtomuch = 4839; //这个暂时用着,卡牌那应该有这个错误码
  1133. /**
  1134. * 玩家没有足够的卡牌可以捐献
  1135. */
  1136. const err_guild_noenoughcardinfo = 4840; //这个暂时用着,卡牌那应该有这个错误码
  1137. /**
  1138. * 卡牌类型不一致
  1139. */
  1140. const err_guild_cardtypeinconformity = 4841;
  1141. /**
  1142. * 今天捐献卡牌数量已经达到最大值
  1143. */
  1144. const err_guild_donatecardnumreachlimit = 4842;
  1145. /**
  1146. * 已经超过捐献时间无法捐献
  1147. */
  1148. const err_guild_overdonatetime = 4843;
  1149. /**
  1150. * 玩家背包中没有该类型的碎片
  1151. */
  1152. const err_guild_usersegementnothechip = 4844;
  1153. /**
  1154. * 英雄合成碎片与参数id不一致
  1155. */
  1156. const err_guild_herochiptypeinconformity = 4846;
  1157. /**
  1158. * 不存在该英雄
  1159. */
  1160. const err_guild_nohero = 4847;
  1161. /**
  1162. * 该贡献度礼包没有开放
  1163. */
  1164. const err_guild_contributionGiftnoopen = 4848;
  1165. /**
  1166. * 该公会钻石礼包没有开放
  1167. */
  1168. const err_guild_cashGiftnoopen = 4849;
  1169. /**
  1170. * 贡献度不够
  1171. */
  1172. const err_guild_contributionnosatisfy = 4850;
  1173. /**
  1174. * 缺少礼包常量数据
  1175. */
  1176. const err_guild_noguildgiftconst = 4851;
  1177. /**
  1178. * 公会消息没有该卡牌的信息
  1179. */
  1180. const err_guild_guildjournalnothechipinfo = 4852;
  1181. /**
  1182. * 公会邮件内容不能为null
  1183. */
  1184. const err_guild_mailcontentcannotbenull = 4853;
  1185. /**
  1186. * 公会公告编辑冷却时间中
  1187. */
  1188. const err_guild_AnnouncementEditCooling = 4854;
  1189. /**
  1190. * 公会战 已经存在邀请数据,不能再次邀请
  1191. */
  1192. const err_guild_fightInvitealreadyexisted = 4855;
  1193. /**
  1194. * 公会战 邀请信息不存在
  1195. */
  1196. const err_guild_fightInvitenoexisted = 4856;
  1197. /**
  1198. * 公会战 在战斗中
  1199. */
  1200. const err_guild_fighting = 4857;
  1201. /**
  1202. * 公会战 在战斗中
  1203. */
  1204. const err_guild_applyconditionnoenough = 4858;
  1205. // </editor-fold>
  1206. //
  1207. // <editor-fold defaultstate="collapsed" desc=" 商城错误码 49xx">
  1208. /**
  1209. * 限购礼包-购买数量已达上限
  1210. */
  1211. const shop_limit_max = 4901;
  1212. /**
  1213. * 月卡已购买,失效前不可再次购买
  1214. */
  1215. const shop_monthlyvip_buyed = 4902;
  1216. /**
  1217. *
  1218. */
  1219. const shop_daliySpecialRewardNotRepeat = 4903;
  1220. const shop_firstRechargeNotRepeat = 4904;
  1221. /**
  1222. * 充值返利奖励不能重复领取
  1223. */
  1224. const shop_RechargeRebateRewardNotRepeat = 4905;
  1225. /**
  1226. * 不足
  1227. */
  1228. const shop_RechargeRebateRmbNotEnough = 4906;
  1229. /*
  1230. * 不是免费领取的礼包
  1231. */
  1232. const shop_limit_NotFree = 4907;
  1233. // </editor-fold>
  1234. // <editor-fold defaultstate="collapsed" desc=" 学院错误码 51xx">
  1235. /**
  1236. * 不存在该任务卡
  1237. */
  1238. const college_notExistTaskCard = 5101;
  1239. /**
  1240. * 任务卡状态错误
  1241. */
  1242. const college_TaskCardStateError = 5202;
  1243. /**
  1244. * 一个年级下的课程数量错误
  1245. */
  1246. const college_courseNumError = 5203;
  1247. /**
  1248. * 一个课程下的任务卡数量错误
  1249. */
  1250. const college_taskCardNumError = 5204;
  1251. /**
  1252. *
  1253. */
  1254. const college_taskScoreRewardRepeatReceive = 5205;
  1255. const college_CourseRewardRepeatReceive = 5206;
  1256. /**
  1257. * 没有解锁
  1258. */
  1259. const college_CourseNotUnlocked = 5207;
  1260. // </editor-fold>
  1261. //
  1262. // <editor-fold defaultstate="collapsed" desc="地图错误码52xx">
  1263. //
  1264. /**
  1265. * 地图-目的地据点尚未解锁
  1266. */
  1267. const map_NotUnlocked = 5201;
  1268. /**
  1269. * 地图-目的地据点已经解锁
  1270. */
  1271. const map_Unlocked = 5202;
  1272. // </editor-fold>
  1273. //
  1274. // <editor-fold defaultstate="collapsed" desc=" 反射方法 ">
  1275. /**
  1276. * 辅助方法, 将所有错误码信息转换到CSV文本中.
  1277. * 用法: 先在本文件中用ctrl + H 全部替换掉 'c onst ' -> 's tatic $'
  1278. * 然后再调用本方法,即可在同目录下生成ErrCode.txt, 里面包含了所需信息.
  1279. * @throws \Exception
  1280. * @author gwang
  1281. */
  1282. static function L() {
  1283. $class = new \ReflectionClass(__CLASS__); # 建立这个类的反射对象
  1284. $properties = $class->getProperties(\ReflectionProperty::IS_STATIC); # 拉取所有静态属性
  1285. $fileName = __DIR__ . "/ErrCode.txt"; # 输出文件名
  1286. $fd = fopen($fileName, "w");
  1287. if (false === $fd) { # 打开文件失败
  1288. throw new \Exception("打开$fileName 失败");
  1289. }
  1290. foreach ($properties as &$p) {
  1291. $d = preg_replace('/[\*|\/|\s+]/', '', $p->getDocComment()); # 处理下注释
  1292. $type = (strpos($p->getName(), 'err') === false ? 0 : 1); # errorType: 0 继续, 1 重启
  1293. $n = fputs($fd, $p->getName() . ";" . $p->getValue() . ";$type;$d" . PHP_EOL); # 写入文件
  1294. if (false === $n) { # 写入时失败
  1295. throw new Exception("写入$fileName 时失败");
  1296. }
  1297. }
  1298. fclose($fd);
  1299. }
  1300. // </editor-fold>
  1301. }
  1302. //ErrCode::L();