status_code.go 42 KB

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