Commit 37b622397cccb7291dd89aa85a1b4e86dec3b63f
1 parent
4c9b0263
no message
Showing
2 changed files
with
29 additions
and
29 deletions
Example/CNLiveBMineModule.xcodeproj/project.pbxproj
| @@ -348,7 +348,6 @@ | @@ -348,7 +348,6 @@ | ||
| 348 | "${BUILT_PRODUCTS_DIR}/CNLiveRequestBastKit/CNLiveRequestBastKit.framework", | 348 | "${BUILT_PRODUCTS_DIR}/CNLiveRequestBastKit/CNLiveRequestBastKit.framework", |
| 349 | "${BUILT_PRODUCTS_DIR}/CNLiveTripartiteManagement/CNLiveTripartiteManagement.framework", | 349 | "${BUILT_PRODUCTS_DIR}/CNLiveTripartiteManagement/CNLiveTripartiteManagement.framework", |
| 350 | "${BUILT_PRODUCTS_DIR}/CNLiveUploadManager/CNLiveUploadManager.framework", | 350 | "${BUILT_PRODUCTS_DIR}/CNLiveUploadManager/CNLiveUploadManager.framework", |
| 351 | - "${BUILT_PRODUCTS_DIR}/CNLiveUserAgreementManager/CNLiveUserAgreementManager.framework", | ||
| 352 | "${BUILT_PRODUCTS_DIR}/CNLiveUserManagement/CNLiveUserManagement.framework", | 351 | "${BUILT_PRODUCTS_DIR}/CNLiveUserManagement/CNLiveUserManagement.framework", |
| 353 | "${BUILT_PRODUCTS_DIR}/FMDB/FMDB.framework", | 352 | "${BUILT_PRODUCTS_DIR}/FMDB/FMDB.framework", |
| 354 | "${BUILT_PRODUCTS_DIR}/HappyDNS/HappyDNS.framework", | 353 | "${BUILT_PRODUCTS_DIR}/HappyDNS/HappyDNS.framework", |
| @@ -384,7 +383,6 @@ | @@ -384,7 +383,6 @@ | ||
| 384 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveRequestBastKit.framework", | 383 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveRequestBastKit.framework", |
| 385 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveTripartiteManagement.framework", | 384 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveTripartiteManagement.framework", |
| 386 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveUploadManager.framework", | 385 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveUploadManager.framework", |
| 387 | - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveUserAgreementManager.framework", | ||
| 388 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveUserManagement.framework", | 386 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CNLiveUserManagement.framework", |
| 389 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FMDB.framework", | 387 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FMDB.framework", |
| 390 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/HappyDNS.framework", | 388 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/HappyDNS.framework", |
| @@ -411,10 +409,12 @@ | @@ -411,10 +409,12 @@ | ||
| 411 | inputPaths = ( | 409 | inputPaths = ( |
| 412 | "${PODS_ROOT}/Target Support Files/Pods-CNLiveBMineModule_Example/Pods-CNLiveBMineModule_Example-resources.sh", | 410 | "${PODS_ROOT}/Target Support Files/Pods-CNLiveBMineModule_Example/Pods-CNLiveBMineModule_Example-resources.sh", |
| 413 | "${PODS_CONFIGURATION_BUILD_DIR}/CNLiveBMineModule/CNLiveBMineModule.bundle", | 411 | "${PODS_CONFIGURATION_BUILD_DIR}/CNLiveBMineModule/CNLiveBMineModule.bundle", |
| 412 | + "${PODS_CONFIGURATION_BUILD_DIR}/CNLiveUserAgreementManager/CNLiveUserAgreementManager.bundle", | ||
| 414 | ); | 413 | ); |
| 415 | name = "[CP] Copy Pods Resources"; | 414 | name = "[CP] Copy Pods Resources"; |
| 416 | outputPaths = ( | 415 | outputPaths = ( |
| 417 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/CNLiveBMineModule.bundle", | 416 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/CNLiveBMineModule.bundle", |
| 417 | + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/CNLiveUserAgreementManager.bundle", | ||
| 418 | ); | 418 | ); |
| 419 | runOnlyForDeploymentPostprocessing = 0; | 419 | runOnlyForDeploymentPostprocessing = 0; |
| 420 | shellPath = /bin/sh; | 420 | shellPath = /bin/sh; |
Example/CNLiveBMineModule/CNLIVEAppDelegate.m
| @@ -20,34 +20,34 @@ | @@ -20,34 +20,34 @@ | ||
| 20 | // Override point for customization after application launch. | 20 | // Override point for customization after application launch. |
| 21 | 21 | ||
| 22 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; | 22 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; |
| 23 | - [CNLiveEnvironmentManager setEnvironment:CNLiveProductionAppStore]; | ||
| 24 | - [CNLiveUserSystemCenter setAppId:AppId appKey:APPKey appSecret:AppSecret isTestEnvironment:TestEnvironment]; | ||
| 25 | - if ([CNUserShareManager isLogin]) { | ||
| 26 | - [CNLiveUserSystemCenter setUserId:CNUserShareModel.uid]; | ||
| 27 | - } | 23 | + [CNLiveEnvironmentManager setAppType:CNLiveAppTypeBusiness environmentType:CNLiveProductionAppStore]; |
| 24 | + [CNLiveUserSystemCenter setAppId:AppId appKey:APPKey appSecret:AppSecret isTestEnvironment:TestEnvironment]; | ||
| 25 | + if ([CNUserShareManager isLogin]) { | ||
| 26 | + [CNLiveUserSystemCenter setUserId:CNUserShareModel.uid]; | ||
| 27 | + } | ||
| 28 | // [self networkParamAction]; | 28 | // [self networkParamAction]; |
| 29 | - | ||
| 30 | - [CNUserInfoManager saveUserinfoDic:@{ | ||
| 31 | - @"bigFaceUrl":@"http://yweb0.cnliveimg.com/images/headImg/2019/1030/1572439148697.jpg", | ||
| 32 | - @"countryCode":@"86", | ||
| 33 | - @"email":@"zhangxiaowen@cnlive.cn", | ||
| 34 | - @"extInfo":@"", | ||
| 35 | - @"faceUrl":@"http://yweb0.cnliveimg.com/images/headImg/2019/1030/1572439148697_small.jpg", | ||
| 36 | - @"gender":@"m", | ||
| 37 | - @"hUid":@"", | ||
| 38 | - @"isNewUser":@"0", | ||
| 39 | - @"location":@"北京 石景山", | ||
| 40 | - @"mobile":@"17600922519", | ||
| 41 | - @"nickName":@"金帝", | ||
| 42 | - @"platformId":@"769_jetj7bq525", | ||
| 43 | - @"qqUid":@"", | ||
| 44 | - @"renrenUid":@"", | ||
| 45 | - @"sinaUid":@"", | ||
| 46 | - @"token":@"RkFYeLkl/u5S7tW8UcOkT3rfLTP/Ua8NIkdEsKlcolvl/yxTMNbAYXmmJyhKGpkj", | ||
| 47 | - @"uid":@"10514405", | ||
| 48 | - @"wxUid":@"" | ||
| 49 | - }]; | ||
| 50 | - [[NSUserDefaults standardUserDefaults] setObject:@"RkFYeLkl/u5S7tW8UcOkT3rfLTP/Ua8NIkdEsKlcolvl/yxTMNbAYXmmJyhKGpkj" forKey:@"CNLiveAuthToken"]; | 29 | + |
| 30 | + [CNUserInfoManager saveUserinfoDic:@{ | ||
| 31 | + @"bigFaceUrl":@"http://yweb0.cnliveimg.com/images/headImg/2019/1030/1572439148697.jpg", | ||
| 32 | + @"countryCode":@"86", | ||
| 33 | + @"email":@"zhangxiaowen@cnlive.cn", | ||
| 34 | + @"extInfo":@"", | ||
| 35 | + @"faceUrl":@"http://yweb0.cnliveimg.com/images/headImg/2019/1030/1572439148697_small.jpg", | ||
| 36 | + @"gender":@"m", | ||
| 37 | + @"hUid":@"", | ||
| 38 | + @"isNewUser":@"0", | ||
| 39 | + @"location":@"北京 石景山", | ||
| 40 | + @"mobile":@"17600922519", | ||
| 41 | + @"nickName":@"金帝", | ||
| 42 | + @"platformId":@"769_jetj7bq525", | ||
| 43 | + @"qqUid":@"", | ||
| 44 | + @"renrenUid":@"", | ||
| 45 | + @"sinaUid":@"", | ||
| 46 | + @"token":@"RkFYeLkl/u5S7tW8UcOkT3rfLTP/Ua8NIkdEsKlcolvl/yxTMNbAYXmmJyhKGpkj", | ||
| 47 | + @"uid":@"10514405", | ||
| 48 | + @"wxUid":@"" | ||
| 49 | + }]; | ||
| 50 | + [[NSUserDefaults standardUserDefaults] setObject:@"RkFYeLkl/u5S7tW8UcOkT3rfLTP/Ua8NIkdEsKlcolvl/yxTMNbAYXmmJyhKGpkj" forKey:@"CNLiveAuthToken"]; | ||
| 51 | CNLiveBMineController *vc = [[CNLiveBMineController alloc] init]; | 51 | CNLiveBMineController *vc = [[CNLiveBMineController alloc] init]; |
| 52 | UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:vc]; | 52 | UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:vc]; |
| 53 | self.window.rootViewController = nav;//设置根视图控制器 | 53 | self.window.rootViewController = nav;//设置根视图控制器 |