2021-09-13 14:22:51 +08:00
|
|
|
//
|
|
|
|
// XPConstant.m
|
|
|
|
// xplan-ios
|
|
|
|
//
|
|
|
|
// Created by 冯硕 on 2021/9/13.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "XPConstant.h"
|
|
|
|
|
|
|
|
@implementation XPConstant
|
|
|
|
|
2021-09-18 20:05:02 +08:00
|
|
|
NSString * const kWeChatNumber = @"yinyoucc";
|
2021-12-07 11:08:43 +08:00
|
|
|
NSString * const kTeenagerAlertDatekey = @"kTeenagerAlertDatekey";
|
2021-12-08 15:36:47 +08:00
|
|
|
NSString * const kRoomMiniNotificationKey = @"RoomMiniNotificationKey";
|
2021-12-25 18:34:54 +08:00
|
|
|
NSString * const kRoomGiftEffectUpdateNotificationKey = @"RoomGiftEffectUpdateNotificationKey";
|
2022-03-01 19:28:16 +08:00
|
|
|
NSString * const kHomeMoreScrollPageKey = @"kHomeMoreScrollPageKey";
|
2022-01-26 15:51:19 +08:00
|
|
|
NSString * const kVisitorUnReadCountNotificationKey = @"kVisitorUnReadCountNotificationKey";
|
2022-02-14 14:22:03 +08:00
|
|
|
NSString * const kRoomRoomLittleGameMiniStageNotificationKey = @"kRoomRoomLittleGameMiniStageNotificationKey";///小游戏最小化坑位的通知的健
|
2022-05-10 19:04:56 +08:00
|
|
|
NSString * const kRoomBackMusicCaptureVolumeKey = @"kRoomBackMusicCaptureVolumeKey";///房间背景音乐 人声大小的key
|
|
|
|
NSString * const kRoomBackMusicAudioMixingVolumeKey = @"kRoomBackMusicAudioMixingVolumeKey";///房间背景音乐 背景音乐的大小
|
2022-05-11 20:38:09 +08:00
|
|
|
NSString * const kRoomBackMusicPlayMusicOrderKey = @"kRoomBackMusicPlayMusicOrderKey";///房间背景音乐 播放顺序 单曲 顺序 1 0
|
|
|
|
NSString * const kRoomBackMusicPlayMusicFinishKey = @"kRoomBackMusicPlayMusicFinishKey";///房间背景音乐 播放完毕的key
|
2022-06-02 18:53:45 +08:00
|
|
|
NSString * const kUserCompleteInfoFinishKey = @"kUserCompleteInfoFinishKey";///补全资料完成
|
2022-07-26 16:01:34 +08:00
|
|
|
NSString * const kHadShowNewUserGiftKey = @"kHadShowNewUserGiftKey";//新用户房间礼物
|
2022-07-28 11:56:59 +08:00
|
|
|
NSString * const kNewUserRechargeKey = @"kNewUserRechargeKey";//新用户充值优惠 不同于房间内首充
|
2022-08-01 19:24:12 +08:00
|
|
|
NSString * const kFromSearchToHomeViewKey = @"kFromSearchToHomeViewKey";//用户第一次从搜索页返回首页
|
|
|
|
NSString * const kTabShowAnchorCardKey = @"kTabShowAnchorCardKey"; //tab展示主播卡片
|
2022-09-05 18:48:19 +08:00
|
|
|
NSString * const kRedPacketHistory = @"kRedPacketHistory";
|
2022-11-24 18:24:48 +08:00
|
|
|
NSString * const kTuWenMessageHistory = @"kTuWenMessageHistory";//图文消息已读记录
|
2022-09-27 15:07:31 +08:00
|
|
|
NSString * const kTeenagerStatusChange = @"kTeenagerStatusChange";//青少年状态改变
|
2022-11-03 17:30:47 +08:00
|
|
|
NSString * const kRoomQuickMessageCloseCount = @"kRoomQuickMessageCloseCount";//房间快捷发言关闭次数
|
2023-03-14 21:14:18 +08:00
|
|
|
NSString * const kSailingPrizeAlertKey = @"kSailingPrizeAlertKey"; //航海不再展示结果弹框
|
2022-07-26 16:01:34 +08:00
|
|
|
|
2021-09-13 14:22:51 +08:00
|
|
|
///在里面进行判断当前环境是什么
|
|
|
|
NSString * const KeyWithType(KeyType type) {
|
2021-10-24 23:41:26 +08:00
|
|
|
BOOL isRelase = NO;
|
|
|
|
#ifdef DEBUG
|
|
|
|
isRelase = NO;
|
|
|
|
#else
|
|
|
|
isRelase = YES;
|
|
|
|
#endif
|
2021-09-13 14:22:51 +08:00
|
|
|
NSDictionary * dic = @{
|
|
|
|
///正式环境
|
|
|
|
@(YES):@{
|
2021-10-19 18:06:19 +08:00
|
|
|
@(KeyType_PasswordEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
|
2023-11-22 14:30:00 +08:00
|
|
|
@(KeyType_NTESQuickLoginBusinessId) : @"200c83103d4a413591c7969dd8d4d6e2",
|
2023-03-16 18:53:44 +08:00
|
|
|
@(KeyType_QQAppid) : @"102044928",
|
2022-09-23 18:12:28 +08:00
|
|
|
@(KeyType_QQSecret) : @"715dd2601777347cd57af77c3e28402f",
|
2023-03-16 18:53:44 +08:00
|
|
|
@(KeyType_WechatAppid) : @"wx4b772d5ebc964a38",
|
2023-03-23 19:18:55 +08:00
|
|
|
@(KeyType_WechatSecret) : @"f045979c311e13725cbb9aa87c265668",
|
2023-11-13 19:25:16 +08:00
|
|
|
@(KeyType_Agora) : @"5b4d929b6c4e4af190550c4a2ec5cd4c",
|
2023-03-16 10:57:51 +08:00
|
|
|
@(KeyType_TRTC) : @"1400798783",
|
2023-03-14 11:45:16 +08:00
|
|
|
@(KeyType_NetEase) : @"5e76ec47632d86c30ce18eabfa332b6a",
|
2021-10-21 12:01:21 +08:00
|
|
|
@(KeyType_APNSCer) : @"yinyouApnsRelease",
|
2023-03-14 11:45:16 +08:00
|
|
|
@(keyType_YiDunBussinessId) : @"601545055434f31dc44a7a33b33a8cdf",
|
2023-11-06 14:08:10 +08:00
|
|
|
@(keyType_UMengAppKey) : @"65377a39b2f6fa00ba6ad8c3",
|
2021-12-06 17:31:52 +08:00
|
|
|
@(keyType_UMengAppChannel) : @"App Store",
|
2022-06-01 10:34:36 +08:00
|
|
|
@(KeyType_FacePwdEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
|
2022-02-14 19:29:29 +08:00
|
|
|
@(KeyType_SudGameAppID) : @"1467745235064848385",
|
2022-06-01 10:34:36 +08:00
|
|
|
@(KeyType_SudGameAppKey) : @"BvjLDpWol7OihaYeFebuepx1bZu6cxU5",
|
2023-03-16 11:16:19 +08:00
|
|
|
@(KeyType_GuildUidKey) : @"8428524",
|
|
|
|
@(KeyType_SystemNotifiUidKey) : @"8747473",
|
|
|
|
@(KeyType_SecretaryUidKey) : @"1930010",
|
2023-11-14 15:05:20 +08:00
|
|
|
@(KeyTyoe_BuglyKey) : @"7fcddf605c"
|
2021-09-13 14:22:51 +08:00
|
|
|
},
|
2021-12-06 20:43:58 +08:00
|
|
|
///测试环境
|
2021-09-13 14:22:51 +08:00
|
|
|
@(NO):@{
|
2021-10-19 18:06:19 +08:00
|
|
|
@(KeyType_PasswordEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
|
2023-11-22 14:30:00 +08:00
|
|
|
@(KeyType_NTESQuickLoginBusinessId) : @"200c83103d4a413591c7969dd8d4d6e2",
|
2023-03-16 18:53:44 +08:00
|
|
|
@(KeyType_QQAppid) : @"102044928",
|
2022-09-23 18:12:28 +08:00
|
|
|
@(KeyType_QQSecret) : @"715dd2601777347cd57af77c3e28402f",
|
2023-03-16 18:53:44 +08:00
|
|
|
@(KeyType_WechatAppid) : @"wx4b772d5ebc964a38",
|
|
|
|
@(KeyType_WechatSecret) : @"f045979c311e13725cbb9aa87c265668",
|
2023-11-13 19:25:16 +08:00
|
|
|
@(KeyType_Agora) : @"5b4d929b6c4e4af190550c4a2ec5cd4c",
|
2023-03-16 10:57:51 +08:00
|
|
|
@(KeyType_TRTC) : @"1400798783",
|
2023-03-24 18:59:32 +08:00
|
|
|
@(KeyType_NetEase) : @"5d5a833a2d0ff1304a5d8bed53d2af5b",
|
2021-10-21 12:01:21 +08:00
|
|
|
@(KeyType_APNSCer) : @"yinyouApnsDebug",
|
2023-03-24 18:59:32 +08:00
|
|
|
@(keyType_YiDunBussinessId) : @"49478ae7a5491a13ce32e9b3e8127382",
|
2023-03-16 10:57:51 +08:00
|
|
|
@(keyType_UMengAppKey) : @"64127f04d64e6861394bc8e1",
|
2021-12-06 17:31:52 +08:00
|
|
|
@(keyType_UMengAppChannel) : @"App Store",
|
2022-06-01 10:34:36 +08:00
|
|
|
@(KeyType_FacePwdEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
|
2022-02-14 19:29:29 +08:00
|
|
|
@(KeyType_SudGameAppID) : @"1467745235064848385",
|
2022-06-01 10:34:36 +08:00
|
|
|
@(KeyType_SudGameAppKey) : @"BvjLDpWol7OihaYeFebuepx1bZu6cxU5",
|
2023-03-16 11:16:19 +08:00
|
|
|
@(KeyType_GuildUidKey) : @"8428524",
|
|
|
|
@(KeyType_SystemNotifiUidKey) : @"8747473",
|
|
|
|
@(KeyType_SecretaryUidKey) : @"1930010",
|
2023-03-16 10:57:51 +08:00
|
|
|
@(KeyTyoe_BuglyKey) : @"6222885c55"
|
2021-09-13 14:22:51 +08:00
|
|
|
}
|
|
|
|
};
|
2021-10-24 23:41:26 +08:00
|
|
|
NSDictionary * enviroDic = [dic objectForKey:@(isRelase)];
|
2021-09-13 14:22:51 +08:00
|
|
|
return [enviroDic objectForKey:@(type)];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|