status_code.go 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773
  1. package code
  2. // 基础状态码
  3. const (
  4. OK int32 = 0 // is ok
  5. Error int32 = 1 // error
  6. )
  7. // 内部错误码
  8. const (
  9. PIDError int32 = 100 // pid错误
  10. DataNotFound int32 = 101 // 数据未找到
  11. DBError int32 = 102 // db error
  12. UIDGetError int32 = 103 // 玩家id传入错误
  13. RecordNotFound int32 = 104 // 记录未找到
  14. DataMarshalError int32 = 105 // 数据序列化错误
  15. RequestParamsError int32 = 106 // 请求参数错误
  16. RouteNotFound int32 = 107 // 路由未找到
  17. RouteTypeError int32 = 108 // 路由请求类型错误
  18. RouteIsDisabled int32 = 109 // 路由已禁用
  19. )
  20. // 节点错误码
  21. const (
  22. NodeIsMaxOfOnlineUser int32 = 201 // 游戏服已经达到最大人数
  23. NodeIsClosed int32 = 202 // 游戏服已关闭,请留意开服公告
  24. NodeIsMaintain int32 = 203 // 游戏已维护中,请留意开服公告
  25. NodeChangeStateError int32 = 204 // 修改游戏服状态错误
  26. NodeRateLimiter int32 = 205 // 请求频率太快,请稍后再试
  27. NodeRequestError int32 = 206 // 节点请求错误
  28. NodeLeagueNotFound int32 = 207 // 联盟节点未找到
  29. NodeMapNotFound int32 = 208 // 地图节点未找到
  30. NodeMapIsMaintain int32 = 209 // 地图维护中
  31. NodeMapIsClosed int32 = 210 // 地图已关闭
  32. NodeMapChangeStateError int32 = 211 // 修改地图状态错误
  33. NodeGameNodeIDIsEmpty int32 = 212 // 游戏节点ID为空
  34. NodeMapNodeIDIsEmpty int32 = 213 // 地图节点ID为空
  35. )
  36. // 业务通用错误码
  37. const (
  38. TimesLimit int32 = 302 // 次数不足
  39. LevelLimit int32 = 303 // 最大等级
  40. IllegalString int32 = 304 // 非法字符串
  41. StringLengthOutOfRange int32 = 305 // 字符串长度超出范围
  42. EmptyString int32 = 306 // 空字符串
  43. DuplicateName int32 = 307 // 重名
  44. RankNotExists int32 = 308 // 排行榜不存在
  45. RewardAlreadyClaim int32 = 309 // 奖励已领取
  46. DuplicateRequest int32 = 310 // 重复的请求
  47. PlayerDetailNotFound int32 = 311 // 玩家信息不存在
  48. OperationTooFast int32 = 314 // 操作太快
  49. IllegalArgument int32 = 315 // 非法参数
  50. OperationNotSupportYet int32 = 316 // 暂不支持该操作
  51. )
  52. // TODO 业务专用错误码往下面排
  53. // 错误码 = (100 + 模块号) * 1000 + 错误号
  54. // 错误号 = 子模块号 * 100 + 序列号
  55. // 配置不存在专用
  56. const (
  57. ConfigNotFound_LordLevel int32 = 10101 // 配置不存在:主角等级
  58. ConfigNotFound_Hero int32 = 10201 // 配置不存在:英雄
  59. ConfigNotFound_HeroStar int32 = 10202 // 配置不存在:英雄星级
  60. ConfigNotFound_HeroTeam int32 = 10203 // 配置不存在:英雄队伍
  61. ConfigNotFound_Item int32 = 10301 // 道具不存在配置中
  62. ConfigNotFound_ItemCraft int32 = 10302 // 道具合成配置不存在
  63. ConfigNotFound_ItemPool int32 = 10303 // 道具池配置不存在
  64. ConfigNotFound_ItemChest int32 = 10304 // 配置不存在:宝箱
  65. ConfigNotFound_Medicine int32 = 10305 // 配置不存在:药品
  66. ConfigNotFound_DropPool int32 = 10306 // 配置不存在:掉落池
  67. ConfigNotFound_FacilityQueue int32 = 10401 // 配置不存在:建筑队列
  68. ConfigNotFound_FacilityLevel int32 = 10402 // 配置不存在:建筑等级
  69. ConfigNotFound_Recruit int32 = 10501 // 配置不存在:招募
  70. ConfigNotFound_MapMarch int32 = 10601 // 配置不存在:地图行军
  71. ConfigNotFound_MapBuild int32 = 10602 // 配置不存在:地图建筑
  72. ConfigNotFound_MapMarchState int32 = 10603 // 配置不存在:地图行军状态
  73. ConfigNotFound_MapBuildUpgrade int32 = 10604 // 配置不存在:地图建筑升级
  74. ConfigNotFound_MapAreaState int32 = 10605 // 配置不存在:地图州
  75. ConfigNotFound_Quest int32 = 10701 // 任务配置未找到
  76. ConfigNotFound_QuestGroup int32 = 10702 // 任务组配置未找到
  77. ConfigNotFound_Mail int32 = 10801 // 邮件配置未找到
  78. ConfigNotFound_Equip int32 = 10901 // 装备配置不存在
  79. ConfigNotFound_EquipLevel int32 = 10902 // 装备等级配置不存在
  80. ConfigNotFound_EquipQuality int32 = 10903 // 装备品质配置未找到
  81. ConfigNotFound_EquipQualityDown int32 = 10904 // 装备降品配置未找到
  82. ConfigNotFound_EquipAttrBase int32 = 10905 // 装备基础属性配置不存在
  83. ConfigNotFound_EquipAttrExtra int32 = 10906 // 装备附加属性配置不存在
  84. ConfigNotFound_SkillPool int32 = 11001 // 技能池配置不存在
  85. ConfigNotExist_SkillLevel int32 = 11002 // 技能等级配置不存在
  86. ConfigNotExist_Conscript int32 = 11101 // 士兵等级配置不存在
  87. ConfigNotExist_ConscriptType int32 = 11102 // 士兵兵种配置不存在
  88. ConfigNotExist_ConscriptUp int32 = 11103 // 升级士兵配置不存在
  89. ConfigNotFound_Chapter int32 = 11201 // 探险配置不存在
  90. ConfigNotFound_ChapterReward int32 = 11202 // 探险奖励配置不存在
  91. ConfigNotFound_ChapterLevel int32 = 11301 // 关卡配置不存在
  92. ConfigNotFound_Shop int32 = 11401 // 商店配置不存在
  93. ConfigNotFound_ShopGoods int32 = 11402 // 商品库配置不存在
  94. ConfigNotFound_LeagueStorage int32 = 11501 // 联盟仓库配置不存在
  95. ConfigNotFound_ExchangeGoods int32 = 11601 // 交易所商品配置不存在
  96. ConfigNotFound_ExchangeSlot int32 = 11602 // 交易所货柜配置不存在
  97. ConfigNotFound_MapCastle int32 = 10606 // 配置不存在:地图城池
  98. ConfigNotFound_SeasonQuest int32 = 12801 // 配置不存在:赛季霸业任务
  99. ConfigNotFound_VipLevel int32 = 11701 // VIP等级配置不存在
  100. ConfigNotFound_ShopCard int32 = 11702 // 周月卡商城配置不存在
  101. ConfigNotFound_ShopGold int32 = 11703 // 金币商城配置不存在
  102. ConfigNotFound_MiniGameLevel int32 = 11801 // 小游戏关卡配置不存在
  103. )
  104. // 账号错误码
  105. const (
  106. AccountInputParamsError int32 = 100000 // 传入参数错误
  107. AccountNameLenError int32 = 100001 // 帐号名长度错误
  108. AccountPasswordLenShort int32 = 100002 // 密码长度错误
  109. AccountNameIsExist int32 = 100003 // 注册失败,帐号名已存在
  110. AccountUnmarshalError int32 = 100004 // token序列化错误
  111. AccountTokenValidateError int32 = 100005 // token验证错误
  112. AccountTokenIsExpired int32 = 100006 // token已经过期
  113. AccountSDKAuthFail int32 = 100007 // 平台帐号验证失败
  114. AccountLoginSDKResponseError int32 = 100008 // 帐号登录sdk返回错误
  115. AccountLoginSignError int32 = 100009 // 帐号登录错误0x000 (签名验证错误)
  116. AccountLoginPIDError int32 = 100010 // 帐号登录错误0x001 (sdk_id)
  117. AccountLoginSDKNotFound int32 = 100011 // 帐号登录错误0x002 (sdkConfig)
  118. AccountLoginParamsError int32 = 100012 // 帐号登录错误0x003 (登录时客户端传入的参数错误)
  119. AccountLoginResponseError int32 = 100013 // 帐号登录错误0x004 (登录时sdk返回的错误)
  120. AccountLoginBindUserError int32 = 100014 // 登录时绑定用户Id失败
  121. AccountLoginServerError int32 = 100015 // 登录时指定的游戏服务不可用
  122. AccountLoginErrorKicked int32 = 100016 // 登录时异常
  123. AccountLoginTimeout int32 = 100017 // 登录超时,请重新登录 (游戏服重启了,需重新登录)
  124. )
  125. const (
  126. PlayerNotLogin int32 = 101000 // 玩家未登录
  127. PlayerDuplicateLogin int32 = 101001 // 玩家重复登录 (踢下线)
  128. PlayerHasLoggedIn int32 = 101002 // 玩家已经登录
  129. PlayerCreateFail int32 = 101003 // 创建玩家失败 (db异常)
  130. PlayerNotFound int32 = 101004 // 玩家未找到
  131. PlayerLoginServerError int32 = 101005 // 玩家登录游戏服错误
  132. PlayerNameLengthShort int32 = 101006 // 昵称长度不能小于2个字
  133. PlayerNameLengthLong int32 = 101007 // 昵称长度不能大于8个字
  134. PlayerIDError int32 = 101008 // 玩家ID错误
  135. PlayerNameIllegal int32 = 101009 // 昵称仅可使用中文数字字母
  136. PlayerNameInMaskWord int32 = 101010 // 昵称中带有敏感字符
  137. PlayerOrderCreateFail int32 = 101013 // 创建订单失败
  138. PlayerOrderIdError int32 = 101014 // 订单ID错误
  139. )
  140. // 英雄错误码
  141. const (
  142. HeroIDNotFound int32 = 102001 // 英雄id未找到
  143. HeroNotExist int32 = 102002 // 不存在该英雄
  144. HeroCapacityLimit int32 = 102003 // 英雄容量上限
  145. HeroCannotRecruit int32 = 102004 // 英雄无法招募
  146. HeroCannotReborn int32 = 102005 // 英雄无法重生
  147. HeroIsBusy int32 = 102006 // 英雄很忙
  148. HeroAttrPointLack int32 = 102007 // 英雄属性点不足
  149. HeroNotInTeam int32 = 102008 // 英雄不在阵型上
  150. HeroStarLimit int32 = 102009 // 英雄进阶上限
  151. HeroStarMismatch int32 = 102010 // 英雄进阶不匹配
  152. HeroEnergyLack int32 = 102011 // 英雄体力不足
  153. HeroResetFail int32 = 102012 // 英雄属性无需重置
  154. HeroSkillStudyFail int32 = 102013 // 英雄技能学习失败
  155. HeroEquipNotWear int32 = 102014 // 英雄未穿戴装备
  156. HeroNotWearThisEquip int32 = 102015 // 英雄未穿戴该装备
  157. HeroEnergyOverflow int32 = 102016 // 英雄体力超出上限,无法使用
  158. HeroStarNotEnough int32 = 102017 // 升星英雄不足
  159. HeroRecoveryHpError int32 = 102018 // 英雄恢复生命值错误
  160. HeroNotNeedRecovery int32 = 102019 // 暂无可治疗英雄
  161. )
  162. // 队伍状态码 // TODO 需要更新
  163. const (
  164. TeamNotUnlock int32 = 102020 // 部队未解锁
  165. TeamIndexError int32 = 102021 // 部队索引位置错误
  166. TeamIndexNotUnlock int32 = 102022 // 部队位置未解锁
  167. TeamIndexHasHero int32 = 102023 // 阵型索引位置已有英雄
  168. TeamIsBusy int32 = 102024 // 部队正忙
  169. TeamArmExceed int32 = 102025 // 部队超出兵力上限
  170. TeamCostExceed int32 = 102026 // 部队超出统御上限
  171. TeamIndexNotChange int32 = 102027 // 部队位置无变化
  172. TeamLineupIndexError int32 = 102028 // 阵型索引位置错误
  173. TeamMemberLimit int32 = 102029 // 队伍成员上限
  174. TeamTroopsNumError int32 = 102030 // 补兵数量错误
  175. TeamHeroAlreadyUp int32 = 102031 // 当前英雄已上阵
  176. TeamAlreadySameHero int32 = 102032 // 上阵相同英雄
  177. TeamIsEmpty int32 = 102033 // 队伍无人上阵
  178. TeamLineupTypeError int32 = 102034 // 阵容类型错误
  179. TeamLineupNotUnlock int32 = 102035 // 阵容队伍未解锁
  180. TeamNotNeedAddTroops int32 = 102036 // 当前兵力已满
  181. TeamNotCommander int32 = 102037 // 当前队伍没有上阵主将
  182. TeamHeroIniury int32 = 102038 // 队伍英雄已重伤
  183. TeamMemberNotExist int32 = 102039 // 队伍成员不存在
  184. TeamOutsideConscripting int32 = 102040 // 成员已在征兵中
  185. TeamOutsideNotExist int32 = 102041 // 不存在征兵或征兵已完成
  186. TeamOutsideTroops int32 = 102042 // 当前队伍正在城外征兵中 无法使用补兵药
  187. )
  188. // 道具错误码
  189. const (
  190. ItemDataNotFound int32 = 103000 // 道具数据未找到
  191. ItemIdNotExist int32 = 103001 // 道具不存在背包中
  192. ItemUseTypeError int32 = 103003 // 道具使用类型错误 (类型没有实现或配置错误)
  193. ItemUseSelectIDError int32 = 103004 // 道具使用选择id错误
  194. ItemUseNumError int32 = 103005 // 道具使用数量错误
  195. ItemNotEnough int32 = 103006 // 道具数量不够
  196. ItemCanNotUse int32 = 103007 // 道具不能使用
  197. ItemNotForSell int32 = 103008 // 道具不可出售
  198. ItemNumError int32 = 103009 // 道具数量错误
  199. ItemUseFail int32 = 103010 // 道具使用失败
  200. ItemDecreaseFail int32 = 103011 // 道具扣除失败
  201. ItemUseSelectIdError int32 = 103012 // 使用时选择的道具id错误
  202. ItemAddFail int32 = 103013 // 道具添加失败
  203. ItemGoldNotEnough int32 = 103014 // 金币不足
  204. ItemCraftSelf int32 = 103016 // 不能合成当前道具
  205. ItemUseNumLimit int32 = 103018 // 使用次数已达上限
  206. ItemTypeError int32 = 103019 // 道具类型错误
  207. ItemAddOnceNumLimit int32 = 103020 // 道具单次添加数量超过上限
  208. ItemCraftEmpty int32 = 103021 // 合成不能为空
  209. ItemCraftNotCan int32 = 103022 // 当前道具不能合成
  210. ItemCraftNotExist int32 = 103023 // 合成消耗不存在
  211. ItemUseOnceLimit int32 = 103024 // 超出单次使用数量上限
  212. )
  213. // 货币错误码
  214. const (
  215. CurrencyNumError int32 = 104001 // 货币数量错误
  216. CurrencyTypeError int32 = 104002 // 货币类型错误
  217. CurrencyNotEnough int32 = 104003 // 货币数量不够
  218. LeagueCurrencyNotSupport int32 = 104004 // 联盟货币不支持
  219. )
  220. // 任务错误码
  221. const (
  222. QuestFinish int32 = 105004 // 任务已经结束
  223. QuestNotFound int32 = 105006 // 任务未找到
  224. QuestNotFinished int32 = 105007 // 任务未完成不能领取
  225. QuestGroupRewardNotExist int32 = 105008 // 任务组不存在章节奖励
  226. )
  227. // 邮件错误码
  228. const (
  229. MailDataNotFound int32 = 106001 // 邮件数据未找到
  230. MailRequestDataError int32 = 106002 // 邮件请求参数错误
  231. MailTypeError int32 = 106003 // 邮件类型错误
  232. MailCollectFail int32 = 106004 // 邮件收藏失败
  233. MailToPlayerError int32 = 106005 // 邮件接收玩家信息错误
  234. MailToPlayerNotEmpty int32 = 106006 // 邮件接收玩家不能为空
  235. MailToPlayerNumLimitExceeded int32 = 106007 // 邮件接收玩家数量超过上限
  236. MailFromPlayerError int32 = 106008 // 邮件发送玩家错误
  237. MailTitleError int32 = 106009 // 邮件标题长度不符
  238. MailContentError int32 = 106011 // 邮件内容长度不符
  239. MailContentTooLong int32 = 106012 // 邮件内容过长
  240. MailRewardHadTake int32 = 106013 // 邮件奖励已经被领取
  241. MailNotRead int32 = 106015 // 邮件未读取,不能删除
  242. MailNotClaim int32 = 106016 // 邮件奖励未领取,不能删除
  243. MailRewardEmpty int32 = 106017 // 暂无可领取邮件
  244. MailNumLimit int32 = 106018 // 邮件数量已达上限
  245. MailDelFail int32 = 106019 // 邮件删除失败
  246. MailReadFail int32 = 106020 // 暂无可读取邮件
  247. MailNotCanTop int32 = 106021 // 当前邮件暂不支持置顶
  248. MailDecreeNoCanDel int32 = 106022 // 法令邮件不能删除
  249. MailAlreadyDel int32 = 106023 // 邮件已删除
  250. MailDelNotExist int32 = 106024 // 暂无可删除邮件
  251. )
  252. // 资产错误码
  253. const (
  254. AssetTypeError int32 = 107001 // 资产类型错误
  255. AssetIsEmpty int32 = 107002 // 资源为空(检查配置)
  256. )
  257. // 聊天室错误码
  258. const (
  259. ChatGetListTooFast int32 = 108001 // 获取历史聊天记录请求太快
  260. ChatSendTypeError int32 = 108002 // 聊天室发送类型错误
  261. ChatEmojiError int32 = 108003 // 聊天室表情包错误
  262. ChatSendTextTooFast int32 = 108004 // 发送消息频率太快
  263. ChatSendTextIsEmpty int32 = 108005 // 聊天室不允许发空消息
  264. ChatChannelNotAvailable int32 = 108006 // 聊天室频道不可用
  265. ChatRoomAddFail int32 = 108007 // 聊天组添加失败
  266. ChatGroupNameIsEmpty int32 = 108008 // 群组名称不能为空
  267. ChatSendTextTooLong int32 = 108009 // 聊天发送消息太长
  268. ChatTextIllegal int32 = 108010 // 聊天内容不可用(只能是数字、字符、中文)
  269. ChatGroupNameTooLong int32 = 108011 // 聊天群组名称太长
  270. ChatGroupNameIllegal int32 = 108012 // 聊天群组名称包含非法字符
  271. ChatGroupInviteNotFriend int32 = 108013 // 聊天群组只能邀请好友
  272. ChatGroupMemberLimit int32 = 108014 // 聊天群组人数超过限制
  273. ChatGroupCreateLimit int32 = 108015 // 聊天群组创建数量超过限制
  274. ChatGroupNotFound int32 = 108016 // 聊天群组不存在
  275. ChatGroupPermissionDenied int32 = 108017 // 群组权限不足
  276. ChatGroupInviteNotFound int32 = 108018 // 群组邀请不存在,或者已被删除
  277. ChatGroupHaveCountLimit int32 = 108019 // 拥有的群数量达到限制
  278. ChatSendLvNotEnough int32 = 108020 // 等级不足,不能发言
  279. ChatPrivateBlackList int32 = 108021 // 在黑名单中,不能私聊
  280. ChatGroupCreateLvNotEnough int32 = 108022 // 领主等级不足,不能创建群组
  281. FriendAddLvNotEnough int32 = 108101 // 领主等级不足,无法添加好友
  282. FriendNumLimit int32 = 108102 // 好友已满,无法再添加好友
  283. FriendRepeatAdd int32 = 108103 // 该玩家已经是你的好友
  284. FriendNotFound int32 = 108104 // 好友不存在
  285. FriendInviteNotFound int32 = 108105 // 好友邀请不存在,或者已被删除
  286. FriendAddSelf int32 = 108106 // 不能添加自己
  287. FriendApplyRepeatAdd int32 = 108107 // 已向对方提交申请
  288. FriendBlackListed int32 = 108108 // 在黑名单中,不能添加好友
  289. FriendRefuseAdd int32 = 108109 // 该玩家不接受好友申请
  290. FriendAddSendSuccess int32 = 108110 // 申请已发送,请等待对方回复
  291. FriendTargetLvNotEnough int32 = 108111 // 对方领主等级不足
  292. FriendTargetInBlackList int32 = 108112 // 对方在黑名单中
  293. FriendTargetNumLimit int32 = 108113 // 对方好友数量达到上限
  294. FriendAddSuccess int32 = 108114 // 添加好友成功
  295. BlackListNotFound int32 = 108201 // 玩家不在黑名单中
  296. BlackListRepeatAdd int32 = 108202 // 玩家已经在黑名单中,不需要重复拉黑
  297. BlackListNumLimit int32 = 108203 // 黑名单数量已经达到上限
  298. ComplaintContentEmpty int32 = 108301 // 举报内容不能为空
  299. ComplaintContextIllegal int32 = 108302 // 举报内容包含非法字符
  300. ComplaintTooFast int32 = 108303 // 举报过于频繁
  301. ComplaintContentTooLong int32 = 108304 // 举报内容过长
  302. )
  303. // 活动错误码
  304. const (
  305. ActivityNotFound int32 = 109001 // 活动未找到
  306. ActivityRequestNotFound int32 = 109002 // 活动请求对象未找到
  307. ActivityUnmarshalDataError int32 = 109003 // 解析活动数据错误
  308. ActivityMarshalDataError int32 = 109004 // 编码活动数据错误
  309. ActivityNotOpen int32 = 109005 // 活动未开启
  310. ActivityQuestNotFound int32 = 109006 // 活动任务未找到
  311. ActivityQuestStateWrong int32 = 109007 // 活动任务状态不对
  312. )
  313. // 战斗错误码
  314. const (
  315. BattleValidateFail int32 = 110001 // 战斗校验失败
  316. BattleTeamEmpty int32 = 110002 // 出战队伍为空
  317. BattleFightNoMatch int32 = 110003 // 出战英雄不匹配
  318. BattleFighterIsDead int32 = 110004 // 战斗武将已阵亡
  319. )
  320. // 装备错误码
  321. const (
  322. EquipNotFound int32 = 111002 // 装备不存在
  323. EquipEnhanceFail int32 = 111003 // 装备强化失败
  324. EquipGUIDHasWear int32 = 111004 // 装备GUID已穿戴
  325. EquipBindHeroError int32 = 111005 // 武器与绑定的英雄错误
  326. EquipPlayerLevelNotEnough int32 = 111007 // 装备强化,玩家等级不够
  327. EquipCostGoldNotEnough int32 = 111008 // 装备强化,扣除金币不够
  328. EquipCostItemNotEnough int32 = 111009 // 装备强化,扣除道具不够
  329. EquipQualityError int32 = 111010 // 装备品质错误
  330. EquipQualityIsMax int32 = 111011 // 装备品质已达到最高
  331. EquipQualityConditionError int32 = 111013 // 装备品质提升被合并的条件错误
  332. EquipQualityBeMergeIsWear int32 = 111014 // 装备品质,被合并的装备正在穿戴中
  333. EquipGUIDError int32 = 111015 // 装备guid错误
  334. EquipDecreaseError int32 = 111016 // 装备guid删除错误
  335. EquipQualityNotDown int32 = 111018 // 装备不能降品
  336. EquipCannotStrong int32 = 111019 // 装备未穿戴不能强化
  337. EquipLevelNotEnough int32 = 111020 // 装备等级不足
  338. EquipNoSpecialSkill int32 = 111021 // 装备没有专属技能
  339. EquipSpecialSkillIsUnlock int32 = 111022 // 装备专属技能已解锁
  340. EquipLevelMax int32 = 111025 // 装备等级到最大等级
  341. )
  342. // 充值错误码
  343. const (
  344. PayChargeIDError int32 = 112001 // 充值项id错误
  345. PayChargeTypeError int32 = 112002 // 充值项类型错误
  346. PayChargeParamsError int32 = 112003 // 充值项参数错误
  347. PayChargeLimit int32 = 112004 // 充值限购
  348. )
  349. // GM 错误码
  350. const (
  351. GMEnableClose int32 = 113001 // 后台添加道具开关关闭
  352. GMItemTypeError int32 = 113002 // 后台添加道具传进来的道具类型非法
  353. )
  354. // 技能错误码
  355. const (
  356. SkillNotExists int32 = 115000 // 技能不存在
  357. SkillStudyFull int32 = 115002 // 技能学习已满
  358. SkillAlreadyStudy int32 = 115003 // 技能已学习
  359. SkillIndexWrong int32 = 115004 // 技能位置出错
  360. SkillLevelLimit int32 = 115005 // 技能等级限制
  361. SkillEvolveLimit int32 = 115006 // 技能已达最大阶级
  362. SkillMismatch int32 = 115007 // 技能不匹配
  363. SkillUpCostError int32 = 115009 // 技能升级消耗错误
  364. SkillNotUnlock int32 = 115010 // 技能未解锁
  365. SkillLevelMax int32 = 115011 // 技能已达最大等级
  366. )
  367. // 城建错误码
  368. const (
  369. FacilityNotUnlock int32 = 116000 // 建筑未解锁
  370. FacilityIsUpgrading int32 = 116001 // 建筑正在升级
  371. FacilityQueueFull int32 = 116002 // 建筑队列已满
  372. FacilityLevelLimit int32 = 116003 // 建筑已达最大等级
  373. FacilityNotInQueue int32 = 116004 // 建筑没有在升级队列中
  374. FacilityQueueRepeatUnlock int32 = 116005 // 建筑队列已经解锁,不需要重复解锁
  375. FacilityUpLordLevelNotEnough int32 = 116006 // 领主等级不够,不能升级
  376. FacilityQueueUnlockOrder int32 = 116007 // 建筑队列须按顺序解锁
  377. FacilityUpPreConditionNotMet int32 = 116008 // 建筑升级前置条件未满足
  378. ConscriptNumLimit int32 = 116100 // 征兵数量上限
  379. ConscriptNoAction int32 = 116101 // 征兵未进行
  380. ConscriptNumLack int32 = 116102 // 征兵数量不足
  381. ConscriptNotSame int32 = 116105 // 征兵兵种不一致
  382. ConscriptLevelLimit int32 = 116106 // 征兵等级未解锁
  383. ConscriptHandling int32 = 116107 // 征兵中
  384. ConscriptUpgradeHandling int32 = 116108 // 征兵升级中
  385. ConscriptMaxLevel int32 = 116110 // 当前士兵已达最大等级
  386. ConscriptUpCostEmpty int32 = 116111 // 升级消耗不存在
  387. ConscriptUpNumLack int32 = 116112 // 升级数量不足
  388. ConscriptNotUp int32 = 116113 // 当前暂无升级士兵
  389. )
  390. // 联盟错误码
  391. const (
  392. LeagueAlreadyJoin int32 = 117000 // 已经加入联盟
  393. LeagueCreateLevelNotEnough int32 = 117001 // 等级不满足要求
  394. LeagueJoinFail int32 = 117002 // 创建联盟失败
  395. LeagueNameEmpty int32 = 117003 // 请输入联盟名称
  396. LeagueNameLimit int32 = 117004 // 联盟名称过长
  397. LeagueAbbNameEmpty int32 = 117005 // 请输入联盟简称
  398. LeagueAbbNameLimit int32 = 117006 // 联盟简称过长
  399. LeagueNameHasSpecial int32 = 117007 // 名字包含特殊字符
  400. LeagueNotExist int32 = 117008 // 联盟不存在
  401. LeagueNameExist int32 = 117009 // 该名称已被占用,请更换其他名字
  402. LeagueAbbNameExist int32 = 117010 // 该简称已被占用,请更换其他名字
  403. LeagueNotJoin int32 = 117011 // 你还没加入联盟
  404. LeagueAlreadyExist int32 = 117012 // 联盟已存在
  405. LeagueMembersLimit int32 = 117013 // 联盟成员数已达上限
  406. LeagueMembersEmpty int32 = 117014 // 联盟成员列表不存在
  407. LeagueLeaderNotQuit int32 = 117015 // 盟主不能退出联盟
  408. LeagueMemberNotExist int32 = 117016 // 联盟成员不存在
  409. LeaguePermissionDenied int32 = 117017 // 联盟操作权限不足
  410. LeagueNotCanOpSelf int32 = 117018 // 不能操作自己
  411. LeagueAlreadyJoinOther int32 = 117019 // 已经加入其他联盟
  412. LeagueApplyRepeat int32 = 117020 // 请勿重复申请
  413. LeagueApplyNotExist int32 = 117021 // 入会申请不存在
  414. LeagueQuitCD int32 = 117022 // 退出联盟冷却中
  415. LeagueSearchNotExist int32 = 117023 // 搜索联盟不存在
  416. LeagueMailDataNotExist int32 = 117024 // 联盟邮件数据不存在
  417. LeagueNotInMap int32 = 117025 // 联盟未加入地图
  418. LeagueNameNotChange int32 = 117026 // 联盟名称未改变
  419. LeagueExpNotEnough int32 = 117027 // 联盟经验不足
  420. LeagueMaxLevel int32 = 117028 // 联盟已达最大等级
  421. LeagueLevelConfigNotExist int32 = 117029 // 联盟等级配置不存在
  422. LeagueFlagBgNotExist int32 = 117030 // 联盟背景配置不存在
  423. LeagueFlagBgError int32 = 117031 // 联盟背景类型错误
  424. LeagueFlagIconNotExist int32 = 117032 // 联盟图标配置不存在
  425. LeagueFlagIconError int32 = 117033 // 联盟图标类型错误
  426. LeagueNeedLevelNotEnough int32 = 117034 // 加入所需主城等级不足
  427. LeagueJobNotExist int32 = 117035 // 联盟职位不存在
  428. LeagueNoCanSetSelfJob int32 = 117036 // 不能设置自己职位
  429. LeagueMemberHasJob int32 = 117037 // 已为官无法任命
  430. LeaguePermissionNotExist int32 = 117038 // 分配权限不存在
  431. LeaguePermissionNoCanSet int32 = 117039 // 职位存在不能设置权限
  432. LeagueLogDataNotExist int32 = 117040 // 联盟日志数据不存在
  433. LeagueNotLeader int32 = 117041 // 您不是盟主
  434. LeagueTransferNotMember int32 = 117042 // 转让玩家不是联盟成员
  435. LeagueTransferExist int32 = 117043 // 当前已存在转让申请
  436. LeagueTransferNotExist int32 = 117044 // 不存在转让申请
  437. LeagueImpeachNotEnd int32 = 117045 // 当前弹劾未结束
  438. LeagueImpeachNotEnough int32 = 117046 // 弹劾条件不满足
  439. LeagueImpeachSelf int32 = 117047 // 盟主不能弹劾自己
  440. LeagueLeaderNotCanSet int32 = 117048 // 不能设置为盟主
  441. LeagueResidenceNotExist int32 = 117049 // 联盟驻地不存在
  442. LeagueResidenceBuilding int32 = 117050 // 联盟驻地建造中
  443. LeagueResidenceHadMember int32 = 117051 // 当前位置已入驻
  444. LeagueTaxRateNotEnough int32 = 117052 // 税率调整次数不足
  445. LeagueTaxRateValueError int32 = 117053 // 税率调整值不合法
  446. LeagueFundBonusMinValueError int32 = 117054 // F币数量不合法
  447. LeagueFundBonusRemainCountNotEnough int32 = 117055 // F币分配剩余数量不足
  448. LeagueFundBonusCountNotEnough int32 = 117056 // F币数量不足
  449. LeagueImpeachNotKick int32 = 117057 // 联盟弹劾中 不能踢出
  450. LeagueImpeachNotTransfer int32 = 117058 // 联盟弹劾中 不能转让
  451. LeagueDiplomacyApplyExist int32 = 117059 // 联盟外交申请已存在
  452. LeagueDiplomacyUnionExist int32 = 117060 // 联盟已加入联邦
  453. LeagueDiplomacyUmengExist int32 = 117061 // 当前已结成友盟关系
  454. LeagueDiplomacyUmengFull int32 = 117062 // 友盟数已满
  455. LeagueDiplomacyApplyNotExist int32 = 117063 // 外交申请不存在
  456. LeagueUnionNotExist int32 = 117064 // 联邦不存在
  457. LeagueUnionMemberLimit int32 = 117065 // 联邦成员已达上限
  458. LeagueUnionNotJoin int32 = 117066 // 未加入联邦
  459. LeagueUnionJoinApplyHandle int32 = 117067 // 申请已处理
  460. LeagueDiplomacyNotUmeng int32 = 117068 // 非友盟关系
  461. LeagueDiplomacyNotUnion int32 = 117069 // 非联邦关系
  462. LeagueDiplomacyRelieveTime int32 = 117070 // 当前解除关系中
  463. LeagueDiplomacyNoSendSelf int32 = 117071 // 不能申请自己
  464. )
  465. const (
  466. MapLeague_TechNotUnlock int32 = 117100 // 科技未解锁
  467. MapLeague_TechUpPreConditionNotMet int32 = 117101 // 科技升级前置条件未满足
  468. MapLeague_TechUpLevelLimit int32 = 117102 // 科技已达最大等级
  469. MapLeague_TechUpCostNotEnough int32 = 117103 // 科技升级消耗不足
  470. MapLeague_CastleNotExist int32 = 117201 // 城池不存在
  471. MapLeague_CastleAlreadyHasLord int32 = 117202 // 城池已有城主
  472. MapLeague_CastleAlreadyHasOther int32 = 117203 // 已经任命其他城池的城主
  473. MapLeague_BuildNotFound int32 = 117204 // 联盟建筑不存在
  474. MapBuild_AlreadyDiscarding int32 = 117205 // 联盟建筑正在摧毁中
  475. MapLeague_BuildSystemCannotDiscard int32 = 117206 // 系统建筑不可摧毁
  476. MapLeague_NotCanDiscard int32 = 117207 // 当前建筑不可摧毁
  477. )
  478. const (
  479. MapUnsupportMarchType int32 = 118000 // 不支持的行军类型
  480. MapTeamNotFound int32 = 118001 // 部队不存在
  481. MapTeamNotMarchable int32 = 118002 // 部队不能行军
  482. MapPathFindFail int32 = 118003 // 地图寻路失败
  483. MapLeaguePointNotFound int32 = 118004 // 找不到联盟驻地点
  484. MapTeamNotRetreatable int32 = 118005 // 部队不能撤退
  485. MapTeamNotMarching int32 = 118006 // 部队不在行军中
  486. MapResOccupyFail_HasOwner int32 = 118007 // 资源占领失败: 非中立资源
  487. MapResOccupyFail_SameLeague int32 = 118008 // 资源占领失败: 盟友资源
  488. MapObjectTypeUnkown int32 = 118009 // 未知的地图对象类型
  489. MapRes_NotFound int32 = 118010 // 地图资源不存在
  490. MapRes_NotAlive int32 = 118011 // 地图资源消失
  491. MapRes_NotMyOwn int32 = 118012 // 地图资源不是我的
  492. MapRes_NotMyLeague int32 = 118014 // 资源不属于同盟
  493. MapResSnatchFail_Neutral int32 = 118015 // 资源掠夺失败: 中立资源
  494. MapResSnatchFail_SameLeague int32 = 118016 // 资源掠夺失败: 盟友资源
  495. MapTile_NotWalkable int32 = 118017 // 地块不可行走
  496. MapTile_HasBlock int32 = 118018 // 地块有阻档
  497. MapBuild_NumLimit int32 = 118019 // 建筑数量限制
  498. MapRelocate_Cooldown int32 = 118020 // 迁城失败:冷却中
  499. MapRelocate_NoLeague int32 = 118021 // 迁城失败:未加入联盟
  500. MapRelocate_BaseNotFound int32 = 118022 // 迁城失败:没有地基
  501. MapRelocate_HasMarch int32 = 118023 // 迁城失败:有部队在地图中
  502. MapRelocate_BaseBuilding int32 = 118024 // 迁城失败:地基建造中
  503. MapMarchFail_GrainLack int32 = 118025 // 行军失败:粮草不足
  504. MapRelocate_NoMainCity int32 = 118026 // 迁城失败:没有主城
  505. MapRelocate_NoLeaguePoint int32 = 118027 // 迁城失败:没有联盟驻地
  506. MapBuild_NoSiegeBase int32 = 118028 // 没有攻城地基
  507. MapBuild_NoBelongedLeague int32 = 118029 // 建筑不属于联盟
  508. MapBuild_IsBuilding int32 = 118030 // 建筑正在建造中
  509. MapCastle_NotFound int32 = 118031 // 城池不存在
  510. MapStartWar_SiegeCampBuilding int32 = 118033 // 攻城大营建造中
  511. MapStartWar_AlreadyStart int32 = 118034 // 已经宣战
  512. MapBuild_NotFound int32 = 118035 // 地图建筑不存在
  513. MapMarch_Unstopable int32 = 118036 // 行军不可终止
  514. MapRetreat_NotRedeploy int32 = 118037 // 撤退失败:不是调动点
  515. MapMarch_BattleState int32 = 118038 // 队伍战斗中
  516. MapDeclareWar_Cooldown int32 = 118039 // 宣战CD中
  517. MapBuild_NotMyLeague int32 = 118040 // 不是同盟建筑
  518. MapMarch_RedeployTargetUnable int32 = 118041 // 行军调动目标无效
  519. MapCastle_NotMyLeague int32 = 118042 // 不是同盟城池
  520. MapMarch_NotAllocArm int32 = 118043 // 没有分配兵力
  521. MapBuild_NotBuildable int32 = 118044 // 不可建造
  522. MapBuild_NoOverride int32 = 118045 // 没有覆盖建筑
  523. MapBuild_NotBelongedPlayer int32 = 118046 // 建筑不属于玩家
  524. MapBuild_NotLeagueBuild int32 = 118047 // 不是联盟建筑
  525. MapBuild_NotPlayerBuild int32 = 118048 // 不是个人建筑
  526. MapAssemble_NotFound int32 = 118049 // 未找到集结信息
  527. MapAssemble_NotLeader int32 = 118050 // 不是你的集结队伍
  528. MapAssemble_KickLeader int32 = 118051 // 不能踢出队长
  529. MapAssemble_NotInAssemble int32 = 118052 // 不在集结队伍中
  530. MapAssemble_MarchNotStandby int32 = 118053 // 集结队伍不在主城
  531. MapAssemble_InvalidTargetType int32 = 118054 // 目标不可集结
  532. MapAssemble_TargetNotFound int32 = 118055 // 集结目标不存在
  533. MapAssemble_TargetInSameLeague int32 = 118056 // 集结目标属于同盟
  534. MapAssemble_NotInSameLeague int32 = 118057 // 集结队伍不属于同盟
  535. MapAssemble_AlreayDepart int32 = 118058 // 集结队伍已出发
  536. MapAssemble_FullMember int32 = 118059 // 集结队伍已满员
  537. MapAssemble_MarchBusy int32 = 118060 // 行军对象繁忙无法集结
  538. MapAssemble_MarchInjure int32 = 118061 // 行军对象重伤无法集结
  539. MapAssemble_SingleMember int32 = 118062 // 单人队伍不能出发
  540. MapAssemble_MemberNotArrive int32 = 118063 // 成员未到达不能出发
  541. MapMarchStateNotRetreatable int32 = 118064 // 当前状态不可撤退
  542. MapAssemble_AlreadyJoin int32 = 118065 // 已经加入集结队伍
  543. MapGetPointFail int32 = 118066 // 获取坐标失败
  544. MapBuild_AreaContainObtical int32 = 118067 // 领地包含障碍物
  545. MapBuild_AreaIntersectSystem int32 = 118068 // 领地与系统领地重合
  546. MapBuild_AreaIntersectEnemy int32 = 118069 // 领地与敌方领地重合
  547. MapBuild_AreaNoLink int32 = 118070 // 领地未连接
  548. MapStopWar_NotInWar int32 = 118071 // 未宣战
  549. MapObjectNotFound int32 = 118072 // 地图对象不存在
  550. MapBuild_IsUpgrading int32 = 118073 // 当前建筑正在升级中
  551. MapBuild_Invincible int32 = 118074 // 当前建筑正在保护中
  552. MapBuild_SameLeague int32 = 118075 // 当前建筑为同盟建筑
  553. MapBuild_SelfBuild int32 = 118076 // 当前建筑为自己的建筑
  554. MapComeback_Cooldown int32 = 118077 // 再起冷却中
  555. MapRes_NoLink int32 = 118078 // 攻占资源领土不接壤
  556. MapSiege_CastleSealed int32 = 118079 // 城池封印中
  557. Map_NotSelectState int32 = 118080 // 未选择出生州
  558. Map_AlreadySelectState int32 = 118081 // 已选择出生州
  559. MapComeback_SameState int32 = 118082 // 不能重选当前州
  560. MapComeback_NeedLeagueQuit int32 = 118083 // 选州再起需要退联盟
  561. Map_StateLimitExceeded int32 = 118084 // 州内名额已达上限
  562. MapReinforce_Cooldown int32 = 118085 // 加固冷却中
  563. MapReinforce_Preparing int32 = 118086 // 加固准备中
  564. MapReinforce_Effecting int32 = 118087 // 加固生效中
  565. MapRes_Invincible int32 = 118088 // 资源点保护中
  566. MapReinforce_NotPreparing int32 = 118089 // 非加固准备阶段不可取消
  567. MapEnter_MapNotOpen int32 = 118100 // 地图未开启
  568. MapBornPoint_NotFound int32 = 118101 // 找不到出生点
  569. MapMark_AlreadyExist int32 = 118102 // 地图标记已存在
  570. MapMark_NotExist int32 = 118103 // 地图标记不存在
  571. MapMark_NotChange int32 = 118104 // 地图标记内容
  572. MapMark_NumLimit int32 = 118105 // 地图标记数量已达上限
  573. MapMark_TitleLenLimit int32 = 118106 // 地图标记标题长度不符
  574. MapMark_DescLenLimit int32 = 118107 // 地图标记描述长度不符
  575. MapMark_CommandNotExist int32 = 118108 // 地图标记指令不存在
  576. MapBuild_FoundateCooldown int32 = 118109 // 地基建造冷却中
  577. MapBuildUpgrade_NotFound int32 = 118110 // 地图建筑升级表不存在
  578. MapBuildUpgradeCost_NotExist int32 = 118111 // 升级消耗不存在
  579. MapBuild_CampIndexFull int32 = 118112 // 营帐下标已达上限
  580. MapBuild_NotUpgrade int32 = 118113 // 不可升级
  581. MapRelocate_MarchNotStandby int32 = 118114 // 迁城失败:行军对象不在主城
  582. MapComeback_MarchNotStandby int32 = 118115 // 再起失败:行军对象不在主城
  583. MapSiege_NoLeague int32 = 118116 // 攻城:中立玩家
  584. MapSiege_NoLink int32 = 118117 // 攻城:不接壤
  585. MapBuild_RedeployLimit int32 = 118118 // 调动数已达上限
  586. MapPoint_OutOfBound int32 = 118119 // 坐标点超出地图边界
  587. )
  588. // 探险
  589. const (
  590. ChapterRewardStarNotEnough int32 = 119003 // 探险章节星数不满足
  591. ChapterNotUnlocked int32 = 119004 // 当前章节未解锁
  592. ChapterLevelNotUnlocked int32 = 119005 // 当前关卡未解锁
  593. ChapterRewardAlreadyReceived int32 = 119006 // 奖励已领取
  594. ChapterLevelError int32 = 119007 // 关卡ID错误
  595. ChapterLevelCountNotEnough int32 = 119009 // 关卡挑战次数不足
  596. ChapterStaminaNotEnough int32 = 119010 // 精力不足
  597. ChapterLevelNotFullStar int32 = 119011 // 关卡未满星
  598. ChapterLineupNotFound int32 = 119012 // 探险阵容不存在
  599. ChapterBattleResultVerifyFail int32 = 119013 // 探险战斗结果校验失败
  600. ChapterBattleFail int32 = 119014 // 探险挑战失败
  601. ChapterMonsterGroupConfigError int32 = 119015 // 探险怪物组配置错误
  602. ChapterLevelBuyTimesNotEnough int32 = 119016 // 当前关卡购买次数不足
  603. ChapterLevelBuyTimesError int32 = 119017 // 购买次数错误
  604. ChapterBattleError int32 = 119018 // 探险战斗异常
  605. ChapterRewardIsEmpty int32 = 119019 // 暂无可领取奖励
  606. ChapterStaminaFull int32 = 119020 // 当前精力已满
  607. )
  608. const (
  609. BattleReportNotExist int32 = 120000 // 战报不存在
  610. )
  611. const (
  612. GMTypeError = 121000 // gm类型错误
  613. )
  614. const (
  615. ShopNotOpen int32 = 122001 // 商店未开启
  616. ShopNotFound int32 = 122002 // 商店数据不存在
  617. ShopBuyNumError int32 = 122003 // 购买次数错误
  618. ShopBuyNumLimit int32 = 122004 // 购买次数已达上限
  619. ShopTypeError int32 = 122005 // 商店类型错误
  620. )
  621. const (
  622. MainChapterConfigNotFound int32 = 123000 // 主线章节配置不存在
  623. MainChapterRewardGot int32 = 123001 // 当前章节奖励已领取
  624. MainChapterNotOpen int32 = 123002 // 当前章节未开启
  625. )
  626. const (
  627. PlayerNameEmpty = 124000 // 玩家名称不能为空
  628. PlayerNameLimit = 124001 // 玩家名称长度不符合
  629. PlayerNameSame = 124002 // 玩家名称无更改
  630. PlayerNameExist = 124003 // 玩家名称已存在
  631. PlayerChangeNameCD = 124004 // 玩家名称改名冷却中
  632. PlayerDescLenLimit = 124005 // 简介长度不符
  633. )
  634. const (
  635. ShowConfigNotExist = 125000 // 外显配置不存在
  636. ShowTypeError = 125001 // 外显类型错误
  637. ShowTypeNotExist = 125002 // 外显类型不存在
  638. ShowNotUnlock = 125003 // 外显未解锁
  639. ShowExpire = 125004 // 外显已过期
  640. ShowAlreadyActive = 125005 // 外显已激活
  641. ShowActiveTypeError = 125006 // 当前激活类型错误
  642. )
  643. const (
  644. LanguageNotExist = 126000 // 设置语言不存在
  645. ShowDataLenNoSame = 126001 // 展示数据长度不一致
  646. ShowDataTypeNotExist = 126002 // 展示数据类型不存在
  647. ShowDataCountLimit = 126003 // 展示数量超出上限
  648. )
  649. const (
  650. ExchangeSlotSellMaxLimit int32 = 127000 // 交易所出售货柜数量已达到上限
  651. ExchangeSlotWishMaxLimit int32 = 127001 // 交易所求购货柜数量已达到上限
  652. ExchangeItemPriceIllegal int32 = 127002 // 交易所物品单价不合法
  653. ExchangeItemQtyIllegal int32 = 127003 // 交易所物品数量不合法
  654. ExchangeItemConfigError int32 = 127004 // 交易所商品配置错误
  655. ExchangeSlotSellNotEnough int32 = 127005 // 交易所出售货柜数量不足
  656. ExchangeSlotWishNotEnough int32 = 127006 // 交易所求购货柜数量不足
  657. ExchangeItemNotFound int32 = 127007 // 交易的商品不存在
  658. ExchangeCountNotEnough int32 = 127008 // 商品数量不足
  659. ExchangeItemSoldOut int32 = 127009 // 商品已经下架或者已售罄
  660. ExchangeDailyBuyCountLimit int32 = 127010 // 每日购买次数达到上限
  661. ExchangeItemNotSoldOut int32 = 127011 // 商品未下架,无需重新上架
  662. ExchangeItemCantRetrieve int32 = 127012 // 商品未下架,不能取回
  663. ExchangeMinFeeConfigError int32 = 127013 // 交易最低手续费不能低于单价
  664. )
  665. const (
  666. SeasonQuestInfoError int32 = 128000 // 赛季霸业任务获取失败
  667. SeasonQuestNotComplete int32 = 128001 // 赛季霸业任务未完成不能领取
  668. SeasonQuestRewardRepeat int32 = 128002 // 霸业任务奖励重复领取
  669. SeasonQuest_NotEnded int32 = 128003 // 赛季霸业任务未结束
  670. )
  671. const (
  672. VipDailyRewardReceived int32 = 129001 // 今日已经领取
  673. VipLevelBoxReceived int32 = 129002 // 当前VIP等级的专属宝箱已经领取
  674. VipLevelNotEnough int32 = 129003 // VIP等级不足
  675. VipCardExpired int32 = 129004 // 领取失败,周月卡已经到期
  676. VipCardAlreadyReceived int32 = 129005 // 周月卡奖励今日已领取
  677. VipCardDayMaxLimit int32 = 129006 // 周月卡日期已达最大上限
  678. )
  679. // 签到
  680. const (
  681. SignInAlreadySigned int32 = 201001 // 已签到
  682. SignInConfigNotFound int32 = 201002 // 签到配置不存在
  683. SignInReSignCountNotEnough int32 = 201003 // 补签次数不足
  684. SignInNoMissedDays int32 = 201004 // 暂无可补签奖励
  685. SignInRewardConfigNotFound int32 = 201005 // 累计签到配置不存在
  686. SignInDaysNotEnough int32 = 201006 // 签到天数不满足
  687. SignInRewardAlreadyReceived int32 = 201007 // 累计签到奖励已领取
  688. SignInReSignNotCan int32 = 201008 // 当前不能补签
  689. SignInPoolNotFound int32 = 201009 // 签到库不存在
  690. )
  691. // 侦察
  692. const (
  693. ScoutQueueNotExist int32 = 202001 // 侦察队列不存在
  694. ScoutQueueBusy int32 = 202002 // 正在侦察中
  695. ScoutNotSelf int32 = 202003 // 不能侦察自己
  696. ScoutNotSupport int32 = 202004 // 当前不支持侦察
  697. ScoutTypeError int32 = 202005 // 侦察状态错误
  698. ScoutFail int32 = 202006 // 侦察失败
  699. )
  700. // 小游戏
  701. const (
  702. MiniGameGameIDError int32 = 203001 // gameId参数错误
  703. MiniGameLevelIDError int32 = 203002 // levelId参数错误
  704. MiniGameLevelCleared int32 = 203003 // 小游戏已通关
  705. MiniGameChapterUnLock int32 = 203004 // 探险解锁关卡未解锁
  706. )