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-03-14 11:45:16 +08:00
|
|
|
@(KeyType_NTESQuickLoginBusinessId) : @"0401dc97927e807fc789ef7adba98003",
|
2022-09-23 18:12:28 +08:00
|
|
|
@(KeyType_QQAppid) : @"101902443",
|
|
|
|
@(KeyType_QQSecret) : @"715dd2601777347cd57af77c3e28402f",
|
|
|
|
@(KeyType_WechatAppid) : @"wxee68b213a1bd632b",
|
|
|
|
@(KeyType_WechatSecret) : @"c5ecafb6a733a32410a5a9b9d560998a",
|
2021-10-19 18:06:19 +08:00
|
|
|
@(KeyType_Agora) : @"7ae1a8dabe7a44a9a67c829faa409e70",
|
2021-12-06 20:43:58 +08:00
|
|
|
@(KeyType_TRTC) : @"1400600174",
|
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",
|
2021-12-08 17:29:00 +08:00
|
|
|
@(keyType_UMengAppKey) : @"61b065e8e014255fcba606d1",
|
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",
|
|
|
|
@(KeyType_GuildUidKey) : @"904771",
|
|
|
|
@(KeyType_SystemNotifiUidKey) : @"904770",
|
2022-11-01 17:10:13 +08:00
|
|
|
@(KeyType_SecretaryUidKey) : @"904769",
|
|
|
|
@(KeyTyoe_BuglyKey) : @"bb158b9965"
|
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-03-14 11:45:16 +08:00
|
|
|
@(KeyType_NTESQuickLoginBusinessId) : @"0401dc97927e807fc789ef7adba98003",
|
2022-09-23 18:12:28 +08:00
|
|
|
@(KeyType_QQAppid) : @"101902443",
|
|
|
|
@(KeyType_QQSecret) : @"715dd2601777347cd57af77c3e28402f",
|
|
|
|
@(KeyType_WechatAppid) : @"wxee68b213a1bd632b",
|
|
|
|
@(KeyType_WechatSecret) : @"c5ecafb6a733a32410a5a9b9d560998a",
|
2021-10-19 18:06:19 +08:00
|
|
|
@(KeyType_Agora) : @"7ae1a8dabe7a44a9a67c829faa409e70",
|
2021-12-06 20:43:58 +08:00
|
|
|
@(KeyType_TRTC) : @"1400600174",
|
2023-03-14 10:33:35 +08:00
|
|
|
@(KeyType_NetEase) : @"5e76ec47632d86c30ce18eabfa332b6a",
|
2021-10-21 12:01:21 +08:00
|
|
|
@(KeyType_APNSCer) : @"yinyouApnsDebug",
|
2023-03-14 11:45:16 +08:00
|
|
|
@(keyType_YiDunBussinessId) : @"601545055434f31dc44a7a33b33a8cdf",
|
2022-10-25 16:47:19 +08:00
|
|
|
@(keyType_UMengAppKey) : @"61b065e8e014255fcba606d1",
|
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",
|
|
|
|
@(KeyType_GuildUidKey) : @"938284",
|
|
|
|
@(KeyType_SystemNotifiUidKey) : @"938283",
|
2022-11-01 17:10:13 +08:00
|
|
|
@(KeyType_SecretaryUidKey) : @"938282",
|
|
|
|
@(KeyTyoe_BuglyKey) : @"b92175dd25"
|
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
|