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-13 18:56:16 +08:00
|
|
|
NSString * const kUMengAppKey = @"5ff6bc6dadb42d5826a1cbc4";
|
|
|
|
NSString * const kChannelKey = @"App Store";
|
2021-09-18 20:05:02 +08:00
|
|
|
NSString * const kWeChatNumber = @"yinyoucc";
|
2021-09-13 18:56:16 +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",
|
2021-12-06 15:40:05 +08:00
|
|
|
@(KeyType_NTESQuickLoginBusinessId) : @"ef7de5582f194c549125a64b710e7f31",
|
2021-10-19 18:06:19 +08:00
|
|
|
@(KeyType_QQAppid) : @"101937205",
|
|
|
|
@(KeyType_QQSecret) : @"458ed9d671ba4b177799189db5fbc434",
|
|
|
|
@(KeyType_WechatAppid) : @"wx3f0462eb7eccd64f",
|
|
|
|
@(KeyType_WechatSecret) : @"1c07949e3f53433f1c6038bfcdd54c40",
|
|
|
|
@(KeyType_Agora) : @"7ae1a8dabe7a44a9a67c829faa409e70",
|
2021-10-21 12:01:21 +08:00
|
|
|
@(KeyType_NetEase) : @"14ef7a0d0a84cb49bae1c22d78cf1ddf",
|
|
|
|
@(KeyType_APNSCer) : @"yinyouApnsRelease",
|
2021-10-29 15:53:44 +08:00
|
|
|
@(keyType_YiDunBussinessId) : @"2eda1894214da27d5ab7aec146fed2a2",
|
2021-09-13 14:22:51 +08:00
|
|
|
},
|
|
|
|
///测试环境
|
|
|
|
@(NO):@{
|
2021-10-19 18:06:19 +08:00
|
|
|
@(KeyType_PasswordEncode) : @"1ea53d260ecf11e7b56e00163e046a26",
|
|
|
|
@(KeyType_NTESQuickLoginBusinessId) : @"09c1214706c34f4798d3f05d86148608",
|
|
|
|
@(KeyType_QQAppid) : @"101937205",
|
|
|
|
@(KeyType_QQSecret) : @"458ed9d671ba4b177799189db5fbc434",
|
|
|
|
@(KeyType_WechatAppid) : @"wx3f0462eb7eccd64f",
|
|
|
|
@(KeyType_WechatSecret) : @"1c07949e3f53433f1c6038bfcdd54c40",
|
|
|
|
@(KeyType_Agora) : @"7ae1a8dabe7a44a9a67c829faa409e70",
|
2021-10-21 12:01:21 +08:00
|
|
|
@(KeyType_NetEase) : @"82a8d602aacbbb27a1c0fc809052286e",
|
|
|
|
@(KeyType_APNSCer) : @"yinyouApnsDebug",
|
2021-10-29 15:53:44 +08:00
|
|
|
@(keyType_YiDunBussinessId) : @"7ed4c5f72673dfc2d813a27bd5854874",
|
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
|