export const TURBO_CORE_URL = 'https://coresrv.tgamebox.cn'; export const APP_ID = 'AXaXmIHPs9eONvzrBesD8aSKQNXYdALF'; export const TURBO_PARM_SECRET = 'ipqw05du6ob4x130w89t31yrqd6xs005zzltcmg2zpqnvrjp1s'; export const ENCRYPT_IV = 'f7182j5f04e377ux'; export const ENCRYPT_KEY = 'fiqaxijabbantusmprc234fj'; export const AUTH_SMS_CNT_PER_DAY = 8; export const COUNTER = { UID: { name: 'uid', def: 1 }, GMUID: { name: 'gmuid', def: 1 }, API: { name: 'api', def: 1 }, GM_GROUP: { name: 'gmgroup', def: 1 }, HID: { name: 'hid', def: 10000 }, EID: { name: 'eid', def: 1 }, ROLE: { name: 'role', def: 1 } }; export const DEFAULT_HEROES = [19, 53, 55, 54, 13]; export const DEFAULT_ITEMS = [ {"id": 11004, "count": 99999999}, {"id": 11013, "count": 999999}, {"id": 11014, "count": 999999}, {"id": 11015, "count": 999999}, {"id": 11016, "count": 999999}, {"id": 17001, "count": 99999999}, {"id": 17002, "count": 99999999}, {"id": 17003, "count": 99999999}, {"id": 17004, "count": 99999999}, {"id": 17005, "count": 99999999}, {"id": 17006, "count": 99999999}, {"id": 17007, "count": 99999999}, {"id": 17008, "count": 99999999}, {"id": 17009, "count": 99999999}, {"id": 17010, "count": 99999999}, {"id": 17011, "count": 99999999}, {"id": 17012, "count": 99999999}, {"id": 17013, "count": 99999999}, {"id": 17014, "count": 99999999}, {"id": 17015, "count": 99999999}, {"id": 17016, "count": 99999999}, {"id": 17017, "count": 99999999}, {"id": 17018, "count": 99999999}, {"id": 17019, "count": 99999999}, {"id": 17020, "count": 99999999}, {"id": 17021, "count": 99999999}, {"id": 17022, "count": 99999999}, {"id": 17023, "count": 99999999}, {"id": 17024, "count": 99999999}, {"id": 17025, "count": 99999999}, {"id": 17026, "count": 99999999}, {"id": 17027, "count": 99999999}, {"id": 17028, "count": 99999999}, {"id": 17029, "count": 99999999}, {"id": 17030, "count": 99999999}, {"id": 17031, "count": 99999999}, {"id": 17032, "count": 99999999}, {"id": 17033, "count": 99999999}, {"id": 17037, "count": 99999999}, {"id": 17038, "count": 99999999}, {"id": 17039, "count": 99999999}, {"id": 17040, "count": 99999999}, {"id": 17041, "count": 99999999}, {"id": 17042, "count": 99999999}, {"id": 17043, "count": 99999999}, {"id": 17044, "count": 99999999}, {"id": 17045, "count": 99999999}, {"id": 17046, "count": 99999999}, {"id": 17047, "count": 99999999}, {"id": 17048, "count": 99999999}, {"id": 17049, "count": 99999999}, {"id": 17050, "count": 99999999}, {"id": 17051, "count": 99999999}, {"id": 17052, "count": 99999999}, {"id": 21009, "count": 99999999}, {"id": 21011, "count": 99999999}, {"id": 21012, "count": 99999999}, {"id": 21014, "count": 99999999}, {"id": 21015, "count": 99999999}, {"id": 21042, "count": 99999999}, {"id": 42083, "count": 9999}, {"id": 42084, "count": 9999}, {"id": 42085, "count": 9999}, {"id": 42086, "count": 9999}, {"id": 42087, "count": 9999}, {"id": 42088, "count": 9999}, {"id": 42176, "count": 9999}, {"id": 42177, "count": 9999}, {"id": 42178, "count": 9999}, {"id": 42179, "count": 9999}, {"id": 42180, "count": 9999}, {"id": 50059, "count": 1}, {"id": 50060, "count": 1}, {"id": 50061, "count": 1}, {"id": 50062, "count": 1}, {"id": 50089, "count": 1}, {"id": 50090, "count": 1}, {"id": 50091, "count": 1}, {"id": 50107, "count": 1}, {"id": 50108, "count": 1}, {"id": 50109, "count": 1}, {"id": 60001, "count": 8888888}, {"id": 60002, "count": 8888888}, {"id": 60003, "count": 8888888}, {"id": 60004, "count": 8888888}, {"id": 60005, "count": 8888888}, {"id": 60006, "count": 8888888}, {"id": 60007, "count": 8888888}, {"id": 60008, "count": 8888888}, {"id": 60009, "count": 8888888}, {"id": 60011, "count": 8888888}, {"id": 60012, "count": 8888888}, {"id": 60013, "count": 8888888}, {"id": 60014, "count": 8888888}, {"id": 60015, "count": 8888888}, {"id": 60016, "count": 8888888}, {"id": 60017, "count": 8888888}, {"id": 60018, "count": 8888888}, {"id": 60019, "count": 8888888}, {"id": 60021, "count": 8888888}, {"id": 60022, "count": 8888888}, {"id": 60023, "count": 8888888}, {"id": 60024, "count": 8888888}, {"id": 60025, "count": 8888888}, {"id": 60026, "count": 8888888}, {"id": 60027, "count": 8888888}, {"id": 60028, "count": 8888888}, {"id": 60029, "count": 8888888}, {"id": 60031, "count": 8888888}, {"id": 60032, "count": 8888888}, {"id": 60033, "count": 8888888}, {"id": 60034, "count": 8888888}, {"id": 60035, "count": 8888888}, {"id": 60036, "count": 8888888}, {"id": 60037, "count": 8888888}, {"id": 60038, "count": 8888888}, {"id": 60039, "count": 8888888}, {"id": 60041, "count": 8888888}, {"id": 60042, "count": 8888888}, {"id": 60043, "count": 8888888}, {"id": 60044, "count": 8888888}, {"id": 60045, "count": 8888888}, {"id": 60046, "count": 8888888}, {"id": 60047, "count": 8888888}, {"id": 60048, "count": 8888888}, {"id": 60049, "count": 8888888}, {"id": 60051, "count": 8888888}, {"id": 60052, "count": 8888888}, {"id": 60053, "count": 8888888}, {"id": 60054, "count": 8888888}, {"id": 60055, "count": 8888888}, {"id": 60056, "count": 8888888}, {"id": 60057, "count": 8888888}, {"id": 60058, "count": 8888888}, {"id": 60059, "count": 8888888}, {"id": 60060, "count": 8888888}, ]; export const DEFAULT_EQUIPS = [ {"id": 8, "count": 1}, {"id": 108, "count": 1}, {"id": 208, "count": 1}, {"id": 308, "count": 1}, {"id": 408, "count": 1}, {"id": 508, "count": 1}, {"id": 608, "count": 1}, {"id": 708, "count": 1}, {"id": 2008, "count": 1}, {"id": 2108, "count": 1}, {"id": 2208, "count": 1}, {"id": 3008, "count": 1}, {"id": 3108, "count": 1}, {"id": 3208, "count": 1}, {"id": 4008, "count": 1}, {"id": 4108, "count": 1}, {"id": 4208, "count": 1}, {"id": 5008, "count": 1}, {"id": 5108, "count": 1}, {"id": 5208, "count": 1}, {"id": 6008, "count": 1}, {"id": 6108, "count": 1}, {"id": 6208, "count": 1}, {"id": 26, "count": 1}, {"id": 126, "count": 1}, {"id": 226, "count": 1}, {"id": 326, "count": 1}, {"id": 426, "count": 1}, {"id": 526, "count": 1}, {"id": 626, "count": 1}, {"id": 726, "count": 1}, {"id": 2026, "count": 1}, {"id": 2126, "count": 1}, {"id": 2226, "count": 1}, {"id": 3026, "count": 1}, {"id": 3126, "count": 1}, {"id": 3226, "count": 1}, {"id": 4026, "count": 1}, {"id": 4126, "count": 1}, {"id": 4226, "count": 1}, {"id": 5026, "count": 1}, {"id": 5126, "count": 1}, {"id": 5226, "count": 1}, {"id": 6026, "count": 1}, {"id": 6126, "count": 1}, {"id": 6226, "count": 1}, ]; export const DEFAULT_GOLD = 9999999999; export const DEFAULT_COIN = 9999999999; export const DEFAULT_LV = 40; export const DEFAULT_HERO_LV = 1; export const FIX_SMS_CODE_TELS = ['18855953630', '13911134885', '15167549151', '15618654010', '15167549151', '18342915387', '15000250967']; export const REDIS_KEY = { USER_INFO: "userInfo", // 玩家缓存信息 TOWER_RANK: "towerRank", // 天梯排行榜 COM_TEAM_SEARCH_PRE: 'comTeamSerQ', // 匹配中的玩家,按品质分 PVP_RANK: "pvpRank", // pvp排行榜 GUILD_INFO: "guildInfo", // 公会信息 GUILD_ACTIVE_RANK: "guildActiveRank", // 公会周活跃排行榜 } // 各排行榜对应hash的key export const REDIS_RANK_TO_INFO = new Map([ [REDIS_KEY.TOWER_RANK, REDIS_KEY.USER_INFO], [REDIS_KEY.PVP_RANK, REDIS_KEY.PVP_RANK], [REDIS_KEY.GUILD_ACTIVE_RANK, REDIS_KEY.GUILD_INFO] ]); export const FUNC_OPT_TYPE = { LEVEL_UP: 1, BATTLE_END: 2 } export const FUNCS_ID = { EVENT: 1, PVP: 2 } export const FRIEND_DROP_TYPE = { COM_BATTLE: 1 } // 每日情谊点上限 export const FRIEND_DROP_MAX = { COM_BTL: 150 } export const FILENAME = { DIC_BLUEPRT_COMPOSE: 'dic_blueprt_compose', DIC_BLUEPRT_POSSIBILITY: 'dic_blueprt_possibility', DIC_EXPEDITION: 'dic_expedition', DIC_EXPEDITION_POINT: 'dic_expedition_point', DIC_FUNC_SWITCH: 'dic_func_switch', DIC_GOODS: 'dic_goods', DIC_CHAREXP: 'dic_zyz_charexp', DIC_DAILY: 'dic_zyz_daily', DIC_EVENT: 'dic_zyz_event', DIC_FASHIONS: 'dic_zyz_fashions', DIC_FRIEND_SHIP: 'dic_zyz_friend_ship', DIC_FRIEND_SHIP_LEVEL: 'dic_zyz_friend_ship_level', DIC_GACHA: 'dic_gacha', DIC_GK_BRANCH: 'dic_zyz_gk_branch', DIC_GK_DAILY: 'dic_zyz_gk_daily', DIC_GK_DUNGEON: 'dic_zyz_gk_dungeon', DIC_GK_DUNGEON_ELITE: 'dic_zyz_gk_dungeonElite', DIC_GK_EVENT: 'dic_zyz_gk_event', DIC_GK_EXPEDITION: 'dic_zyz_gk_expedition', DIC_GK_MAIN: 'dic_zyz_gk_main', DIC_GK_MAIN_ELITE: 'dic_zyz_gk_mainElite', DIC_GK_TOWER: 'dic_zyz_gk_tower', DIC_GK_TREASURE: 'dic_zyz_gk_Treasure', DIC_HERO: 'dic_zyz_hero', DIC_HERO_QUALITY_UP: 'dic_zyz_hero_quality_up', DIC_HERO_STAR: 'dic_zyz_hero_star', DIC_HERO_WAKE: 'dic_zyz_hero_wake', DIC_HERO_SKILL: 'dic_zyz_heroskill', DIC_JOB: 'dic_zyz_job', DIC_KING_EXP: 'dic_zyz_kingexp', DIC_CHAR_EXP: 'dic_zyz_charexp', DIC_SE: 'dic_zyz_se', DIC_TOWER_TASK: 'dic_zyz_search', DIC_TOWER: 'dic_zyz_tower', DIC_XUNBAO: 'dic_zyz_xunbao', DIC_QUESTION: 'Questions', DIC_RANDOM_EFFECT_POOL: 'dic_zyz_randomEffectPool', DIC_STRENGTHEN_COST: 'dic_zyz_enhancementCost', DIC_REFINE: 'dic_zyz_jinglian', DIC_HERO_EQUIP: 'dic_zyz_heroEquip', DIC_SUIT: 'dic_zyz_suit', DIC_TITLE: 'dic_zyz_title', DIC_TERAPH: 'dic_zyz_teraph', DIC_SCHOOL: 'dic_zyz_school', DIC_SCHOOL_RATE: 'dic_zyz_schoolRate', DIC_HERO_SCROLL: 'dic_zyz_heroScroll', DIC_PVP_OPPONENT: 'dic_pvp_opponent', DIC_PVP_TEAM_LEVEL: 'dic_pvp_teamLevel', DIC_GK_PVP: 'dic_zyz_gk_pvp', DIC_PVP_REFRESH_CONSUME: 'dic_pvp_refreshConsume', DIC_PVP_HERO_REWARD: 'dic_pvp_heroAccountReward', DIC_PVP_RANK_REWARD: 'dic_pvp_rankReward', DIC_PVP_BOX: 'dic_pvp_boxReward', DIC_GUILD_AUTH: 'dic_army_authority', DIC_GUILD_STRUCTURE_CENTER: 'dic_army_structureCentre', DIC_GUILD_EQUIP_PRODUCE_BASE: 'dic_army_equipProduceBase', DIC_GUILD_BOSS_BASE: 'dic_army_bossBase', DIC_GUILD_TRAIN_BASE: 'dic_army_trainBase', DIC_GUILD_DONATE_BASE: 'dic_army_donateBase', DIC_GUILD_WISH_POOL_BASE: 'dic_army_wishPool', DIC_GUILD_STORE_BASE: 'dic_army_storeBase', DIC_GUILD_POSITION: 'dic_army_position', DIC_ACTIVE_DAY_REWARD: 'dic_army_activeDayReward', DIC_ACTIVE_WEEK_REWARD: 'dic_army_activeWeekReward', DIC_MAIL: 'dic_email_army', DIC_ARMY_TRAIN_JU_DIAN: 'dic_army_trainJuDian', DIC_ARMY_TRAIN_SOLO_REWARD: 'dic_army_trainSoloReward', DIC_ARMY_ACTIVE_POINT_WAYS: 'dic_army_activePointWays', DIC_ARMY_DEVELOPMENTCONSUME: 'dic_army_developmentConsume', DIC_ARMY_BOSS_RANK_REWARD: 'dic_army_bossrankReward', DIC_ARMY_DONATE_BOX_REWARD: 'dic_army_donateBoxReward', DIC_ROLE_FRIEND: 'dic_zyz_friends', DIC_ROLE_FRIEND_LEVEL: 'dic_zyz_closelevel' } export const WAR_RELATE_TABLES = [ FILENAME.DIC_GK_BRANCH, FILENAME.DIC_GK_DAILY, FILENAME.DIC_GK_DUNGEON, FILENAME.DIC_GK_DUNGEON_ELITE, FILENAME.DIC_GK_EVENT, FILENAME.DIC_GK_EXPEDITION, FILENAME.DIC_GK_MAIN, FILENAME.DIC_GK_MAIN_ELITE, FILENAME.DIC_GK_TOWER, FILENAME.DIC_GK_TREASURE, FILENAME.DIC_GK_PVP ] // 装备栏强化类型 export const EQUIP_STRENGTHEN_TYPE = { SINGLE: 1, // 单件单级强化 SINGLE_QUICK: 2, // 单件一键强化 ALL_QUICK: 3 // 武将全部装备栏一键强化 } // 邮件内容类型 export const MAIL_TYPE = { SEND_MAIL: 0, GUILD_APPLY_REFUSE: 1, GUILD_BE_IMPEACH: 2, GUILD_BE_SET_LEADER: 3, GUILD_BE_KICK: 4, GUILD_ACTIVE_REWARD: 5, GUILD_BE_SET_MANAGER: 6, GUILD_BE_SET_MEMBER: 7 }; export const CHAT_SERVER = 'chat-server-1';