94 lines
5.0 KiB
Objective-C
94 lines
5.0 KiB
Objective-C
//
|
|
// XPConstant.m
|
|
// xplan-ios
|
|
//
|
|
// Created by 冯硕 on 2021/9/13.
|
|
//
|
|
|
|
#import "XPConstant.h"
|
|
|
|
@implementation XPConstant
|
|
|
|
NSString * const kWeChatNumber = @"yinyoucc";
|
|
NSString * const kTeenagerAlertDatekey = @"kTeenagerAlertDatekey";
|
|
NSString * const kRoomMiniNotificationKey = @"RoomMiniNotificationKey";
|
|
NSString * const kRoomGiftEffectUpdateNotificationKey = @"RoomGiftEffectUpdateNotificationKey";
|
|
NSString * const kHomeMoreScrollPageKey = @"kHomeMoreScrollPageKey";
|
|
NSString * const kVisitorUnReadCountNotificationKey = @"kVisitorUnReadCountNotificationKey";
|
|
NSString * const kRoomRoomLittleGameMiniStageNotificationKey = @"kRoomRoomLittleGameMiniStageNotificationKey";///小游戏最小化坑位的通知的健
|
|
NSString * const kRoomBackMusicCaptureVolumeKey = @"kRoomBackMusicCaptureVolumeKey";///房间背景音乐 人声大小的key
|
|
NSString * const kRoomBackMusicAudioMixingVolumeKey = @"kRoomBackMusicAudioMixingVolumeKey";///房间背景音乐 背景音乐的大小
|
|
NSString * const kRoomBackMusicPlayMusicOrderKey = @"kRoomBackMusicPlayMusicOrderKey";///房间背景音乐 播放顺序 单曲 顺序 1 0
|
|
NSString * const kRoomBackMusicPlayMusicFinishKey = @"kRoomBackMusicPlayMusicFinishKey";///房间背景音乐 播放完毕的key
|
|
NSString * const kUserCompleteInfoFinishKey = @"kUserCompleteInfoFinishKey";///补全资料完成
|
|
NSString * const kHadShowNewUserGiftKey = @"kHadShowNewUserGiftKey";//新用户房间礼物
|
|
NSString * const kNewUserRechargeKey = @"kNewUserRechargeKey";//新用户充值优惠 不同于房间内首充
|
|
NSString * const kFromSearchToHomeViewKey = @"kFromSearchToHomeViewKey";//用户第一次从搜索页返回首页
|
|
NSString * const kTabShowAnchorCardKey = @"kTabShowAnchorCardKey"; //tab展示主播卡片
|
|
NSString * const kRedPacketHistory = @"kRedPacketHistory";
|
|
NSString * const kTeenagerStatusChange = @"kTeenagerStatusChange";//青少年状态改变
|
|
NSString * const kRoomQuickMessageCloseCount = @"kRoomQuickMessageCloseCount";//房间快捷发言关闭次数
|
|
|
|
///在里面进行判断当前环境是什么
|
|
NSString * const KeyWithType(KeyType type) {
|
|
BOOL isRelase = NO;
|
|
#ifdef DEBUG
|
|
isRelase = NO;
|
|
#else
|
|
isRelase = YES;
|
|
#endif
|
|
|
|
NSDictionary * dic = @{
|
|
///正式环境
|
|
@(YES):@{
|
|
@(KeyType_PasswordEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
|
|
@(KeyType_NTESQuickLoginBusinessId) : @"60cdaa83aa654e5ea184de7160b4073d",
|
|
@(KeyType_QQAppid) : @"101902443",
|
|
@(KeyType_QQSecret) : @"715dd2601777347cd57af77c3e28402f",
|
|
@(KeyType_WechatAppid) : @"wxee68b213a1bd632b",
|
|
@(KeyType_WechatSecret) : @"c5ecafb6a733a32410a5a9b9d560998a",
|
|
@(KeyType_Agora) : @"7ae1a8dabe7a44a9a67c829faa409e70",
|
|
@(KeyType_TRTC) : @"1400600174",
|
|
@(KeyType_NetEase) : @"14ef7a0d0a84cb49bae1c22d78cf1ddf",
|
|
@(KeyType_APNSCer) : @"yinyouApnsRelease",
|
|
@(keyType_YiDunBussinessId) : @"244721766ba607056a32c8824a85c253",
|
|
@(keyType_UMengAppKey) : @"61b065e8e014255fcba606d1",
|
|
@(keyType_UMengAppChannel) : @"App Store",
|
|
@(KeyType_FacePwdEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
|
|
@(KeyType_SudGameAppID) : @"1467745235064848385",
|
|
@(KeyType_SudGameAppKey) : @"BvjLDpWol7OihaYeFebuepx1bZu6cxU5",
|
|
@(KeyType_GuildUidKey) : @"904771",
|
|
@(KeyType_SystemNotifiUidKey) : @"904770",
|
|
@(KeyType_SecretaryUidKey) : @"904769",
|
|
@(KeyTyoe_BuglyKey) : @"bb158b9965"
|
|
},
|
|
///测试环境
|
|
@(NO):@{
|
|
@(KeyType_PasswordEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
|
|
@(KeyType_NTESQuickLoginBusinessId) : @"60cdaa83aa654e5ea184de7160b4073d",
|
|
@(KeyType_QQAppid) : @"101902443",
|
|
@(KeyType_QQSecret) : @"715dd2601777347cd57af77c3e28402f",
|
|
@(KeyType_WechatAppid) : @"wxee68b213a1bd632b",
|
|
@(KeyType_WechatSecret) : @"c5ecafb6a733a32410a5a9b9d560998a",
|
|
@(KeyType_Agora) : @"7ae1a8dabe7a44a9a67c829faa409e70",
|
|
@(KeyType_TRTC) : @"1400600174",
|
|
@(KeyType_NetEase) : @"82a8d602aacbbb27a1c0fc809052286e",
|
|
@(KeyType_APNSCer) : @"yinyouApnsDebug",
|
|
@(keyType_YiDunBussinessId) : @"be58dfa4a664540006f0ed1f752d604a",
|
|
@(keyType_UMengAppKey) : @"61b065e8e014255fcba606d1",
|
|
@(keyType_UMengAppChannel) : @"App Store",
|
|
@(KeyType_FacePwdEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
|
|
@(KeyType_SudGameAppID) : @"1467745235064848385",
|
|
@(KeyType_SudGameAppKey) : @"BvjLDpWol7OihaYeFebuepx1bZu6cxU5",
|
|
@(KeyType_GuildUidKey) : @"938284",
|
|
@(KeyType_SystemNotifiUidKey) : @"938283",
|
|
@(KeyType_SecretaryUidKey) : @"938282",
|
|
@(KeyTyoe_BuglyKey) : @"b92175dd25"
|
|
}
|
|
};
|
|
NSDictionary * enviroDic = [dic objectForKey:@(isRelase)];
|
|
return [enviroDic objectForKey:@(type)];
|
|
}
|
|
|
|
@end
|