Files
yinmeng-ios/xplan-ios/Global/XPConstant.m

46 lines
1.6 KiB
Objective-C

//
// XPConstant.m
// xplan-ios
//
// Created by 冯硕 on 2021/9/13.
//
#import "XPConstant.h"
@implementation XPConstant
NSString * const kUMengAppKey = @"5ff6bc6dadb42d5826a1cbc4";
NSString * const kChannelKey = @"App Store";
NSString * const kWeChatNumber = @"yinyoucc";
///在里面进行判断当前环境是什么
NSString * const KeyWithType(KeyType type) {
BOOL isRelease = YES;
NSDictionary * dic = @{
///正式环境
@(YES):@{
@(KeyType_PasswordEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
@(KeyType_NTESQuickLoginBusinessId) : @"09c1214706c34f4798d3f05d86148608",
@(KeyType_QQAppid) : @"101937205",
@(KeyType_QQSecret) : @"458ed9d671ba4b177799189db5fbc434",
@(KeyType_WechatAppid) : @"wx3f0462eb7eccd64f",
@(KeyType_WechatSecret) : @"1c07949e3f53433f1c6038bfcdd54c40",
@(KeyType_Agora) : @"7ae1a8dabe7a44a9a67c829faa409e70",
},
///测试环境
@(NO):@{
@(KeyType_PasswordEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
@(KeyType_NTESQuickLoginBusinessId) : @"09c1214706c34f4798d3f05d86148608",
@(KeyType_QQAppid) : @"101937205",
@(KeyType_QQSecret) : @"458ed9d671ba4b177799189db5fbc434",
@(KeyType_WechatAppid) : @"wx3f0462eb7eccd64f",
@(KeyType_WechatSecret) : @"1c07949e3f53433f1c6038bfcdd54c40",
@(KeyType_Agora) : @"7ae1a8dabe7a44a9a67c829faa409e70",
}
};
NSDictionary * enviroDic = [dic objectForKey:@(isRelease)];
return [enviroDic objectForKey:@(type)];
}
@end