Files
yinmeng-ios/xplan-ios/Global/XPConstant.m
2023-11-22 14:30:00 +08:00

95 lines
5.2 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 kTuWenMessageHistory = @"kTuWenMessageHistory";//图文消息已读记录
NSString * const kTeenagerStatusChange = @"kTeenagerStatusChange";//青少年状态改变
NSString * const kRoomQuickMessageCloseCount = @"kRoomQuickMessageCloseCount";//房间快捷发言关闭次数
NSString * const kSailingPrizeAlertKey = @"kSailingPrizeAlertKey"; //航海不再展示结果弹框
///在里面进行判断当前环境是什么
NSString * const KeyWithType(KeyType type) {
BOOL isRelase = NO;
#ifdef DEBUG
isRelase = NO;
#else
isRelase = YES;
#endif
NSDictionary * dic = @{
///正式环境
@(YES):@{
@(KeyType_PasswordEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
@(KeyType_NTESQuickLoginBusinessId) : @"200c83103d4a413591c7969dd8d4d6e2",
@(KeyType_QQAppid) : @"102044928",
@(KeyType_QQSecret) : @"715dd2601777347cd57af77c3e28402f",
@(KeyType_WechatAppid) : @"wx4b772d5ebc964a38",
@(KeyType_WechatSecret) : @"f045979c311e13725cbb9aa87c265668",
@(KeyType_Agora) : @"5b4d929b6c4e4af190550c4a2ec5cd4c",
@(KeyType_TRTC) : @"1400798783",
@(KeyType_NetEase) : @"5e76ec47632d86c30ce18eabfa332b6a",
@(KeyType_APNSCer) : @"yinyouApnsRelease",
@(keyType_YiDunBussinessId) : @"601545055434f31dc44a7a33b33a8cdf",
@(keyType_UMengAppKey) : @"65377a39b2f6fa00ba6ad8c3",
@(keyType_UMengAppChannel) : @"App Store",
@(KeyType_FacePwdEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
@(KeyType_SudGameAppID) : @"1467745235064848385",
@(KeyType_SudGameAppKey) : @"BvjLDpWol7OihaYeFebuepx1bZu6cxU5",
@(KeyType_GuildUidKey) : @"8428524",
@(KeyType_SystemNotifiUidKey) : @"8747473",
@(KeyType_SecretaryUidKey) : @"1930010",
@(KeyTyoe_BuglyKey) : @"7fcddf605c"
},
///测试环境
@(NO):@{
@(KeyType_PasswordEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
@(KeyType_NTESQuickLoginBusinessId) : @"200c83103d4a413591c7969dd8d4d6e2",
@(KeyType_QQAppid) : @"102044928",
@(KeyType_QQSecret) : @"715dd2601777347cd57af77c3e28402f",
@(KeyType_WechatAppid) : @"wx4b772d5ebc964a38",
@(KeyType_WechatSecret) : @"f045979c311e13725cbb9aa87c265668",
@(KeyType_Agora) : @"5b4d929b6c4e4af190550c4a2ec5cd4c",
@(KeyType_TRTC) : @"1400798783",
@(KeyType_NetEase) : @"5d5a833a2d0ff1304a5d8bed53d2af5b",
@(KeyType_APNSCer) : @"yinyouApnsDebug",
@(keyType_YiDunBussinessId) : @"49478ae7a5491a13ce32e9b3e8127382",
@(keyType_UMengAppKey) : @"64127f04d64e6861394bc8e1",
@(keyType_UMengAppChannel) : @"App Store",
@(KeyType_FacePwdEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
@(KeyType_SudGameAppID) : @"1467745235064848385",
@(KeyType_SudGameAppKey) : @"BvjLDpWol7OihaYeFebuepx1bZu6cxU5",
@(KeyType_GuildUidKey) : @"8428524",
@(KeyType_SystemNotifiUidKey) : @"8747473",
@(KeyType_SecretaryUidKey) : @"1930010",
@(KeyTyoe_BuglyKey) : @"6222885c55"
}
};
NSDictionary * enviroDic = [dic objectForKey:@(isRelase)];
return [enviroDic objectForKey:@(type)];
}
@end