ErrCode.php 31 KB

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