Commit df6b9825 by pierce

fixed bugs

parent 9fa53a3b
......@@ -226,27 +226,26 @@
if (self.appStatus == NO) { return; }
[self.postJsonList addObject:data];
[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(fus_privatePostDatasRequest) object:nil];
if (self.postJsonList.count <= 15) {
[self fus_privatePostDatasRequest];
if (self.postJsonList.count >= 15) {
[self fus_privatePostDatasRequestFromTimer:NO];
} else {
if (self.postTimer == nil) {
__weak typeof(self) weakSelf = self;
self.postTimer = [NSTimer scheduledTimerWithTimeInterval:10 block:^(NSTimer * _Nonnull timer) {
[weakSelf fus_privatePostDatasRequest];
[weakSelf fus_privatePostDatasRequestFromTimer:YES];
} repeats:NO];
}
}
}
- (void)fus_privatePostDatasRequest {
- (void)fus_privatePostDatasRequestFromTimer:(BOOL)fromTimer {
NSArray *postDatas = [self.postJsonList copy];
[self.postJsonList removeAllObjects];
[FUSHttpHelper postRequestBinaryWithUrl:[FUSConfig.sharedInstanced.pathConfigs apiUrl:@"/open/ios/json/data"]
params:@{@"json":postDatas.description}
params:@{@"json":[NSString stringWithFormat:@"%d%@",fromTimer,postDatas.description]}
success:nil
failure:nil];
......
......@@ -217,6 +217,8 @@
__weak typeof(self) weakSelf = self;
_segCtrlView.selectItemBlock = ^(NSInteger index, NSString *itemText) {
[FUSConfig.sharedInstanced.devConfigs fus_postJsonData:itemText];
CGRect scFrame = weakSelf.scrollView.frame;
scFrame.origin.x = weakSelf.scrollView.width * index;
[weakSelf.scrollView scrollRectToVisible:scFrame animated:NO];
......@@ -346,6 +348,7 @@
[FUSRouter.chatRouter fus_pushToServiceControllerWithAnimate:YES];
}
-(void)fus_settingBtnDidClicked:(UIButton *)btn{
[FUSConfig.sharedInstanced.devConfigs fus_postJsonData:@"msg setting click"];
[FUSZhaiXinSettingPopView fus_showFUSZhaiXinSettingPopView];
}
-(void)fus_notificationRemindCloseBtnDidClicked:(UIButton *)btn{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment