Commit d955a7390d026d829803547022c2288c5e5c3dc2

Authored by yanglingyu
1 parent 36c3a597

云测bug修复

CNLiveCMineModule.podspec
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 8
9 Pod::Spec.new do |s| 9 Pod::Spec.new do |s|
10 s.name = 'CNLiveCMineModule' 10 s.name = 'CNLiveCMineModule'
11 - s.version = '0.2.0' 11 + s.version = '0.2.1'
12 s.summary = '网家家C端个人中心' 12 s.summary = '网家家C端个人中心'
13 13
14 # This description is used to generate tags and improve search results. 14 # This description is used to generate tags and improve search results.
CNLiveCMineModule/Classes/CNCMine/View/CNTopImageView.m
@@ -53,17 +53,17 @@ @@ -53,17 +53,17 @@
53 make.width.mas_equalTo(DS_adapt_length(105)); 53 make.width.mas_equalTo(DS_adapt_length(105));
54 }]; 54 }];
55 [self.iconImage mas_makeConstraints:^(MASConstraintMaker *make) { 55 [self.iconImage mas_makeConstraints:^(MASConstraintMaker *make) {
56 - make.top.equalTo(self).offset(kStatusHeight+DS_adapt_length(23)); 56 + make.top.equalTo(self).offset(kStatusHeight+DS_adapt_length(35));
57 make.left.equalTo(self).offset(DS_adapt_length(12)); 57 make.left.equalTo(self).offset(DS_adapt_length(12));
58 make.width.height.mas_equalTo(DS_adapt_length(60)); 58 make.width.height.mas_equalTo(DS_adapt_length(60));
59 }]; 59 }];
60 [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) { 60 [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
61 make.left.mas_equalTo(DS_adapt_length(82.5)); 61 make.left.mas_equalTo(DS_adapt_length(82.5));
62 - make.top.mas_equalTo(kStatusHeight+DS_adapt_length(27)); 62 + make.top.mas_equalTo(kStatusHeight+DS_adapt_length(39));
63 }]; 63 }];
64 [self.homelandBtn mas_makeConstraints:^(MASConstraintMaker *make) { 64 [self.homelandBtn mas_makeConstraints:^(MASConstraintMaker *make) {
65 make.left.equalTo(self.titleLabel); 65 make.left.equalTo(self.titleLabel);
66 - make.top.mas_equalTo(kStatusHeight+DS_adapt_length( 23+30)); 66 + make.top.mas_equalTo(kStatusHeight+DS_adapt_length( 35+30));
67 make.height.mas_equalTo(DS_adapt_length(26)); 67 make.height.mas_equalTo(DS_adapt_length(26));
68 make.width.mas_equalTo(DS_adapt_length(86.5)); 68 make.width.mas_equalTo(DS_adapt_length(86.5));
69 }]; 69 }];
CNLiveCMineModule/Classes/CNCMine/ViewController/CNLiveMineVC.m
@@ -107,6 +107,8 @@ static NSString *const CNSobotNotification_NewMessage = @"CNSobotNotification_Ne @@ -107,6 +107,8 @@ static NSString *const CNSobotNotification_NewMessage = @"CNSobotNotification_Ne
107 self.toolView.top = self.activityView.bottom + DS_adapt_length(16); 107 self.toolView.top = self.activityView.bottom + DS_adapt_length(16);
108 self.versionLabel.top = self.toolView.bottom + DS_adapt_length(16); 108 self.versionLabel.top = self.toolView.bottom + DS_adapt_length(16);
109 self.bgScrollView.contentSize = CGSizeMake(kScreenWidth, self.versionLabel.bottom + DS_adapt_length(8)); 109 self.bgScrollView.contentSize = CGSizeMake(kScreenWidth, self.versionLabel.bottom + DS_adapt_length(8));
  110 + }else{
  111 + [self.topImageView uploadViews];
110 } 112 }
111 [self loadData]; 113 [self loadData];
112 114
@@ -163,12 +165,12 @@ static NSString *const CNSobotNotification_NewMessage = @"CNSobotNotification_Ne @@ -163,12 +165,12 @@ static NSString *const CNSobotNotification_NewMessage = @"CNSobotNotification_Ne
163 #pragma mark - UIScrollViewDelegate 165 #pragma mark - UIScrollViewDelegate
164 - (void)scrollViewDidScroll:(UIScrollView *)scrollView{ 166 - (void)scrollViewDidScroll:(UIScrollView *)scrollView{
165 CGFloat contentOffetY = scrollView.offsetY + kStatusHeight; 167 CGFloat contentOffetY = scrollView.offsetY + kStatusHeight;
166 - if (contentOffetY <= DS_adapt_length(23) && contentOffetY > 0) {  
167 - self.topSmallView.alpha = contentOffetY/DS_adapt_length(23) ; 168 + if (contentOffetY <= DS_adapt_length(35) && contentOffetY > 0) {
  169 + self.topSmallView.alpha = contentOffetY/DS_adapt_length(35) ;
168 [AppKeyWindow addSubview:self.topImageView.codesView]; 170 [AppKeyWindow addSubview:self.topImageView.codesView];
169 [AppKeyWindow addSubview:self.topImageView.iconImage]; 171 [AppKeyWindow addSubview:self.topImageView.iconImage];
170 [self.topImageView.iconImage mas_remakeConstraints:^(MASConstraintMaker *make) { 172 [self.topImageView.iconImage mas_remakeConstraints:^(MASConstraintMaker *make) {
171 - make.top.equalTo(self.view).offset(kStatusHeight+DS_adapt_length(23) - contentOffetY); 173 + make.top.equalTo(self.view).offset(kStatusHeight+DS_adapt_length(35) - contentOffetY);
172 make.left.equalTo(self.view).offset(DS_adapt_length( 12)); 174 make.left.equalTo(self.view).offset(DS_adapt_length( 12));
173 make.width.height.mas_equalTo(DS_adapt_length(60) - self.topSmallView.alpha * DS_adapt_length(28)); 175 make.width.height.mas_equalTo(DS_adapt_length(60) - self.topSmallView.alpha * DS_adapt_length(28));
174 }]; 176 }];
@@ -179,7 +181,7 @@ static NSString *const CNSobotNotification_NewMessage = @&quot;CNSobotNotification_Ne @@ -179,7 +181,7 @@ static NSString *const CNSobotNotification_NewMessage = @&quot;CNSobotNotification_Ne
179 make.height.mas_equalTo(DS_adapt_length(30)); 181 make.height.mas_equalTo(DS_adapt_length(30));
180 make.width.mas_equalTo(DS_adapt_length(105)); 182 make.width.mas_equalTo(DS_adapt_length(105));
181 }]; 183 }];
182 - }else if (contentOffetY > DS_adapt_length(23)){ 184 + }else if (contentOffetY > DS_adapt_length(35)){
183 self.topSmallView.alpha = 1; 185 self.topSmallView.alpha = 1;
184 [self.topSmallView addSubview:self.topImageView.codesView]; 186 [self.topSmallView addSubview:self.topImageView.codesView];
185 [self.topSmallView addSubview:self.topImageView.iconImage]; 187 [self.topSmallView addSubview:self.topImageView.iconImage];
@@ -200,7 +202,7 @@ static NSString *const CNSobotNotification_NewMessage = @&quot;CNSobotNotification_Ne @@ -200,7 +202,7 @@ static NSString *const CNSobotNotification_NewMessage = @&quot;CNSobotNotification_Ne
200 [self.topImageView addSubview:self.topImageView.codesView]; 202 [self.topImageView addSubview:self.topImageView.codesView];
201 [self.topImageView addSubview:self.topImageView.iconImage]; 203 [self.topImageView addSubview:self.topImageView.iconImage];
202 [self.topImageView.iconImage mas_remakeConstraints:^(MASConstraintMaker *make) { 204 [self.topImageView.iconImage mas_remakeConstraints:^(MASConstraintMaker *make) {
203 - make.top.equalTo(self.topImageView).offset(kStatusHeight+DS_adapt_length(23)); 205 + make.top.equalTo(self.topImageView).offset(kStatusHeight+DS_adapt_length(35));
204 make.left.equalTo(self.topImageView).offset(DS_adapt_length(12)); 206 make.left.equalTo(self.topImageView).offset(DS_adapt_length(12));
205 make.width.height.mas_equalTo(DS_adapt_length(60)); 207 make.width.height.mas_equalTo(DS_adapt_length(60));
206 }]; 208 }];
CNLiveCMineModule/Classes/CNCSubMine/Present/CNCSubMinePresent.h
@@ -17,7 +17,7 @@ typedef void (^CNLoginResponseBlock)(NSURLSessionTask *requestTask, id responseO @@ -17,7 +17,7 @@ typedef void (^CNLoginResponseBlock)(NSURLSessionTask *requestTask, id responseO
17 /// 请求刷新二维码 17 /// 请求刷新二维码
18 /// @param type 请求类型 18 /// @param type 请求类型
19 /// @param response 返回数据 19 /// @param response 返回数据
20 -+ (void) requestGenCodeWith:(NSString *)type response:(void(^)(NSDictionary *data))response; 20 ++ (void) requestGenCodeWith:(NSString *)type response:(void(^)(NSDictionary *data,NSError *error))response;
21 21
22 /// 获取设置本地数据 22 /// 获取设置本地数据
23 + (NSMutableArray <CNMySettingListModel*> *)settingDataSource:(NSString *)status; 23 + (NSMutableArray <CNMySettingListModel*> *)settingDataSource:(NSString *)status;
CNLiveCMineModule/Classes/CNCSubMine/Present/CNCSubMinePresent.m
@@ -25,17 +25,16 @@ @@ -25,17 +25,16 @@
25 }); 25 });
26 return _singleton; 26 return _singleton;
27 } 27 }
28 -+ (void)requestGenCodeWith:(NSString *)type response:(nonnull void (^)(NSDictionary * _Nonnull))response 28 ++ (void)requestGenCodeWith:(NSString *)type response:(nonnull void (^)(NSDictionary * _Nonnull, NSError * _Nonnull))response
29 { 29 {
30 NSDictionary * paramDic = @{ 30 NSDictionary * paramDic = @{
31 @"appId":AppId, 31 @"appId":AppId,
32 @"sid":CNUserShareModel.uid?CNUserShareModel.uid:@"", 32 @"sid":CNUserShareModel.uid?CNUserShareModel.uid:@"",
33 @"type":type 33 @"type":type
34 }; 34 };
  35 + [CNLiveNetworking setupShowDataResult:YES];
35 [CNLiveNetworking requestNetworkWithMethod:CNLiveRequestMethodPOST URLString:CNGenOrResetCodeUrl Param:paramDic CacheType:CNLiveNetworkCacheTypeNetworkOnly CompletionBlock:^(NSURLSessionTask *requestTask, id responseObject, NSError *error) { 36 [CNLiveNetworking requestNetworkWithMethod:CNLiveRequestMethodPOST URLString:CNGenOrResetCodeUrl Param:paramDic CacheType:CNLiveNetworkCacheTypeNetworkOnly CompletionBlock:^(NSURLSessionTask *requestTask, id responseObject, NSError *error) {
36 - if (!error) {  
37 - response(responseObject);  
38 - } 37 + response(responseObject,error);
39 }]; 38 }];
40 } 39 }
41 + (NSMutableArray <CNMySettingListModel*>*)settingDataSource:(NSString *)status{ 40 + (NSMutableArray <CNMySettingListModel*>*)settingDataSource:(NSString *)status{
CNLiveCMineModule/Classes/CNCSubMine/ViewController/CNMineCodeVC.m
@@ -27,10 +27,17 @@ @@ -27,10 +27,17 @@
27 27
28 @implementation CNMineCodeVC 28 @implementation CNMineCodeVC
29 -(void)requestSource:(NSString *)type{ 29 -(void)requestSource:(NSString *)type{
  30 + [self.loading startAnimating];
30 weakself 31 weakself
31 - [CNCSubMinePresent requestGenCodeWith:type response:^(NSDictionary * _Nonnull data) {  
32 - weakSelf.codeView.image = [[CNLiveCMineService shareMineProtocol] loadSGQRCodeGenImage:data[@"qrcode"] type:@"user"];  
33 - [[SDImageCache sharedImageCache] storeImage:weakSelf.codeView.image forKey:CNUserShareModel.uid toDisk:YES completion:NULL]; 32 + [CNCSubMinePresent requestGenCodeWith:type response:^(NSDictionary * _Nonnull data, NSError * _Nonnull error) {
  33 + [weakSelf.loading stopAnimating];
  34 + if (!error) {
  35 + weakSelf.codeView.image = [[CNLiveCMineService shareMineProtocol] loadSGQRCodeGenImage:data[@"qrcode"] type:@"user"];
  36 + [[SDImageCache sharedImageCache] storeImage:weakSelf.codeView.image forKey:CNUserShareModel.uid toDisk:YES completion:NULL];
  37 + }else{
  38 + [QMUITips showWithText:error.localizedDescription inView:self.view hideAfterDelay:1.5];
  39 + }
  40 +
34 }]; 41 }];
35 } 42 }
36 - (void)viewDidLoad { 43 - (void)viewDidLoad {
CNLiveCMineModule/Classes/CNWallet/ViewController/CNMineWalletController.m
@@ -352,7 +352,6 @@ @@ -352,7 +352,6 @@
352 if (!_transferBalanceItemView) { 352 if (!_transferBalanceItemView) {
353 _transferBalanceItemView = [[CNLiveMyExchangeBalanceView alloc]initWithFrame:CGRectMake(0, 0, KScreenWidth, 50) title:@"转余额" image:[CNLiveCMineService imageWithMineName:@"transfer_balance_icon"]]; 353 _transferBalanceItemView = [[CNLiveMyExchangeBalanceView alloc]initWithFrame:CGRectMake(0, 0, KScreenWidth, 50) title:@"转余额" image:[CNLiveCMineService imageWithMineName:@"transfer_balance_icon"]];
354 _transferBalanceItemView.block = ^{ 354 _transferBalanceItemView.block = ^{
355 -#warning 交互  
356 [[CNLiveCMineService shareMineProtocol] pushCMineContentForCMainPlatWithType:14 param:@{} contentVC:self]; 355 [[CNLiveCMineService shareMineProtocol] pushCMineContentForCMainPlatWithType:14 param:@{} contentVC:self];
357 }; 356 };
358 } 357 }
CNLiveCMineModule/Classes/Colletion/ViewController/CNMineCollectController.m
@@ -201,10 +201,10 @@ static NSString * const kCNLiveWebViewForCollectionRefreshKey = @&quot;kCNLiveWebView @@ -201,10 +201,10 @@ static NSString * const kCNLiveWebViewForCollectionRefreshKey = @&quot;kCNLiveWebView
201 201
202 cell.selectImageActionBlock = ^(NSArray *images, NSArray *imageUrls, NSArray * thumbUrlsArr, SDAnimatedImageView *currentImage) { 202 cell.selectImageActionBlock = ^(NSArray *images, NSArray *imageUrls, NSArray * thumbUrlsArr, SDAnimatedImageView *currentImage) {
203 203
204 - [[CNLiveCMineService shareMineProtocol] pushCMineContentForCMainPlatWithType:14 param:[model mj_keyValues] contentVC:self]; 204 + [[CNLiveCMineService shareMineProtocol] pushCMineContentForCMainPlatWithType:15 param:[model mj_keyValues] contentVC:self];
205 }; 205 };
206 cell.selectVideoActionBlock = ^(CNMineCollectionCell *cell, NSString *vid, UIImageView *curroutImage) { 206 cell.selectVideoActionBlock = ^(CNMineCollectionCell *cell, NSString *vid, UIImageView *curroutImage) {
207 - [[CNLiveCMineService shareMineProtocol] pushCMineContentForCMainPlatWithType:14 param:[model mj_keyValues] contentVC:self]; 207 + [[CNLiveCMineService shareMineProtocol] pushCMineContentForCMainPlatWithType:15 param:[model mj_keyValues] contentVC:self];
208 }; 208 };
209 209
210 return cell; 210 return cell;