Commit 06a83fbaba74cbd01fd1f7d4e4528c3544efd2f3

Authored by zhangxiaowen
1 parent c5ee057c

no message

CNLiveMineModule/Classes/UserInfo/CNLiveInfoUpdateController.m
@@ -34,6 +34,7 @@ @@ -34,6 +34,7 @@
34 #import "CNLiveUserInfoNavigationBar.h" 34 #import "CNLiveUserInfoNavigationBar.h"
35 35
36 #import "CNLiveInfoUpdateCell.h" 36 #import "CNLiveInfoUpdateCell.h"
  37 +#import "CNLiveEnvironment.h"
37 38
38 @interface CNLiveInfoUpdateController ()<UITextFieldDelegate,UITextViewDelegate,CNLiveUserInfoNavigationBarDelegate,QMUIAlertControllerDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate,TZImagePickerControllerDelegate,UITableViewDelegate,UITableViewDataSource>{ 39 @interface CNLiveInfoUpdateController ()<UITextFieldDelegate,UITextViewDelegate,CNLiveUserInfoNavigationBarDelegate,QMUIAlertControllerDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate,TZImagePickerControllerDelegate,UITableViewDelegate,UITableViewDataSource>{
39 UIImage *_image; 40 UIImage *_image;
@@ -415,6 +416,7 @@ static const CGFloat timeValue = 1.5; @@ -415,6 +416,7 @@ static const CGFloat timeValue = 1.5;
415 //压缩图片质量 416 //压缩图片质量
416 image = [self reduceImage:image percent:0.5]; 417 image = [self reduceImage:image percent:0.5];
417 [QMUITips showLoading:@"修改中" inView:self.view]; 418 [QMUITips showLoading:@"修改中" inView:self.view];
  419 + NSLog(@"%@",AppId);
418 420
419 [CNLiveUserSystemCenter uploadIconWithUid:CNUserShareModel.uid icon:image compressionQuality:0.99 success:^(id result) { 421 [CNLiveUserSystemCenter uploadIconWithUid:CNUserShareModel.uid icon:image compressionQuality:0.99 success:^(id result) {
420 [[IMAPlatform sharedInstance].host asyncProfile]; 422 [[IMAPlatform sharedInstance].host asyncProfile];
Example/CNLiveMineModule.xcodeproj/project.pbxproj
@@ -648,7 +648,7 @@ @@ -648,7 +648,7 @@
648 INFOPLIST_FILE = "CNLiveMineModule/CNLiveMineModule-Info.plist"; 648 INFOPLIST_FILE = "CNLiveMineModule/CNLiveMineModule-Info.plist";
649 MARKETING_VERSION = 1.0; 649 MARKETING_VERSION = 1.0;
650 MODULE_NAME = ExampleApp; 650 MODULE_NAME = ExampleApp;
651 - PRODUCT_BUNDLE_IDENTIFIER = com.cnlive.CNLiveNetAdd.CNLiveMineModule; 651 + PRODUCT_BUNDLE_IDENTIFIER = com.cnlive.CNLiveNetAdd;
652 PRODUCT_NAME = "我的模块"; 652 PRODUCT_NAME = "我的模块";
653 SWIFT_VERSION = 4.0; 653 SWIFT_VERSION = 4.0;
654 TARGETED_DEVICE_FAMILY = 1; 654 TARGETED_DEVICE_FAMILY = 1;
@@ -669,7 +669,7 @@ @@ -669,7 +669,7 @@
669 INFOPLIST_FILE = "CNLiveMineModule/CNLiveMineModule-Info.plist"; 669 INFOPLIST_FILE = "CNLiveMineModule/CNLiveMineModule-Info.plist";
670 MARKETING_VERSION = 1.0; 670 MARKETING_VERSION = 1.0;
671 MODULE_NAME = ExampleApp; 671 MODULE_NAME = ExampleApp;
672 - PRODUCT_BUNDLE_IDENTIFIER = com.cnlive.CNLiveNetAdd.CNLiveMineModule; 672 + PRODUCT_BUNDLE_IDENTIFIER = com.cnlive.CNLiveNetAdd;
673 PRODUCT_NAME = "我的模块"; 673 PRODUCT_NAME = "我的模块";
674 SWIFT_VERSION = 4.0; 674 SWIFT_VERSION = 4.0;
675 TARGETED_DEVICE_FAMILY = 1; 675 TARGETED_DEVICE_FAMILY = 1;
Example/CNLiveMineModule/CNLIVEAppDelegate.m
@@ -19,8 +19,8 @@ @@ -19,8 +19,8 @@
19 { 19 {
20 // Override point for customization after application launch. 20 // Override point for customization after application launch.
21 self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 21 self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
22 - [CNLiveEnvironmentManager setEnvironment:CNLiveDebugAppStore];  
23 - [CNLiveUserSystemCenter setAppId:AppId appKey:APPKey appSecret:AppSecret isTestEnvironment:TestEnvironment]; 22 + [CNLiveEnvironmentManager setEnvironment:CNLiveProductionAppStore];
  23 + [CNLiveUserSystemCenter setAppId:AppId appKey:APPKey appSecret:AppSecret isTestEnvironment:NO];
24 if ([CNUserShareManager isLogin]) { 24 if ([CNUserShareManager isLogin]) {
25 [CNLiveUserSystemCenter setUserId:CNUserShareModel.uid]; 25 [CNLiveUserSystemCenter setUserId:CNUserShareModel.uid];
26 } 26 }