From 7fbd9ad9302e1ed0773b6c03762a8499b4a4d283 Mon Sep 17 00:00:00 2001 From: fengshuo <963787902@qq.com> Date: Tue, 1 Nov 2022 17:10:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0bugly=E7=9A=84key=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E5=92=8C=E6=AD=A3=E5=BC=8F=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xplan-ios/Appdelegate/AppDelegate+ThirdConfig.m | 4 ++-- xplan-ios/Global/XPConstant.h | 2 ++ xplan-ios/Global/XPConstant.m | 6 ++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/xplan-ios/Appdelegate/AppDelegate+ThirdConfig.m b/xplan-ios/Appdelegate/AppDelegate+ThirdConfig.m index b7215d2c..9fe212ca 100644 --- a/xplan-ios/Appdelegate/AppDelegate+ThirdConfig.m +++ b/xplan-ios/Appdelegate/AppDelegate+ThirdConfig.m @@ -87,11 +87,11 @@ UIKIT_EXTERN NSString * adImageName; #ifdef DEBUG config.debugMode = YES; // debug 模式下,开启调试模式 config.reportLogLevel = BuglyLogLevelVerbose; // 设置打印日志级别 - [Bugly startWithAppId:@"bb158b9965" config:config]; + [Bugly startWithAppId:KeyWithType(KeyTyoe_BuglyKey) config:config]; #else config.debugMode = NO; // release 模式下,关闭调试模式 config.reportLogLevel = BuglyLogLevelWarn; // 设置自定义日志上报的级别,默认不上报自定义日志 - [Bugly startWithAppId:@"bb158b9965" config:config]; + [Bugly startWithAppId:KeyWithType(KeyTyoe_BuglyKey) config:config]; #endif } diff --git a/xplan-ios/Global/XPConstant.h b/xplan-ios/Global/XPConstant.h index d3d4d76a..83bcf04e 100644 --- a/xplan-ios/Global/XPConstant.h +++ b/xplan-ios/Global/XPConstant.h @@ -43,6 +43,8 @@ typedef NS_ENUM(NSUInteger, KeyType) { KeyType_SystemNotifiUidKey, ///小秘书 KeyType_SecretaryUidKey, + ///bugly的key + KeyTyoe_BuglyKey, }; /// 获取当前项目中所用到的 type 所对应的 value 的值 type 类型 diff --git a/xplan-ios/Global/XPConstant.m b/xplan-ios/Global/XPConstant.m index 8fbfe754..bfa14965 100644 --- a/xplan-ios/Global/XPConstant.m +++ b/xplan-ios/Global/XPConstant.m @@ -59,7 +59,8 @@ NSString * const KeyWithType(KeyType type) { @(KeyType_SudGameAppKey) : @"BvjLDpWol7OihaYeFebuepx1bZu6cxU5", @(KeyType_GuildUidKey) : @"904771", @(KeyType_SystemNotifiUidKey) : @"904770", - @(KeyType_SecretaryUidKey) : @"904769" + @(KeyType_SecretaryUidKey) : @"904769", + @(KeyTyoe_BuglyKey) : @"bb158b9965" }, ///测试环境 @(NO):@{ @@ -81,7 +82,8 @@ NSString * const KeyWithType(KeyType type) { @(KeyType_SudGameAppKey) : @"BvjLDpWol7OihaYeFebuepx1bZu6cxU5", @(KeyType_GuildUidKey) : @"938284", @(KeyType_SystemNotifiUidKey) : @"938283", - @(KeyType_SecretaryUidKey) : @"938282" + @(KeyType_SecretaryUidKey) : @"938282", + @(KeyTyoe_BuglyKey) : @"b92175dd25" } }; NSDictionary * enviroDic = [dic objectForKey:@(isRelase)];