From eeb0fad802f9558eb74c6964480b38b49e016c45 Mon Sep 17 00:00:00 2001
From: chenqiyang <1406175257@qq.com>
Date: 星期四, 06 四月 2023 17:40:08 +0800
Subject: [PATCH] 1.增加不能app配网提示页功能 2.修改部分或计划语言
---
EZSDK/EZSDK/EZ/UIViewControllers/EZDeviceTableViewController.m | 34 +++++++++++++++++++++++++++++-----
1 files changed, 29 insertions(+), 5 deletions(-)
diff --git a/EZSDK/EZSDK/EZ/UIViewControllers/EZDeviceTableViewController.m b/EZSDK/EZSDK/EZ/UIViewControllers/EZDeviceTableViewController.m
index 6c7fc55..609e952 100644
--- a/EZSDK/EZSDK/EZ/UIViewControllers/EZDeviceTableViewController.m
+++ b/EZSDK/EZSDK/EZ/UIViewControllers/EZDeviceTableViewController.m
@@ -8,7 +8,7 @@
#import "EZDeviceTableViewController.h"
-#import "EZAccessToken.h"
+#import <EZOpenSDKFramework/EZAccessToken.h>
#import "MJRefresh.h"
#import "DeviceListCell.h"
#import "DDKit.h"
@@ -17,8 +17,8 @@
#import "EZMessageListViewController.h"
#import "EZSettingViewController.h"
#import "EZCameraTableViewController.h"
-#import "EZAreaInfo.h"
-#import "EZUserInfo.h"
+#import <EZOpenSDKFramework/EZAreaInfo.h>
+#import <EZOpenSDKFramework/EZUserInfo.h>
#import "Toast+UIView.h"
//#import "EZVideoTalkViewcontroller.h"
#import "EZMultiChannelRealPlayVC.h"
@@ -70,6 +70,10 @@
[self.logoutBtn setEnabled: NO];
[self checkEZIsLogin];
+
+// self.addButton=nil;
+ self.addButton=[[UIBarButtonItem alloc] init];
+// self.addButton=[UIImage imageNamed:@""];
}
@@ -253,7 +257,17 @@
return;
}
[weakSelf.deviceList removeAllObjects];
- [weakSelf.deviceList addObjectsFromArray:deviceList];
+ HDLEZLog(@"鑾峰彇鍒扮殑璁惧鍒楄〃锛�%@",deviceList);
+ NSMutableArray *finalDeviceList=[NSMutableArray arrayWithArray:deviceList];
+ if (self.filterTypes&&self.filterTypes.count!=0) {//鍒ゆ柇鏄惁闇�瑕佽繃婊�
+ for (EZDeviceInfo *deviceInfo in deviceList) {
+ HDLEZLog(@"鑾峰彇鍒扮殑璁惧鍒楄〃category锛�%@",deviceInfo.category);
+ if ([self.filterTypes containsObject:[HDLEZConstants turnNil:deviceInfo.category]]) {
+ [finalDeviceList removeObject:deviceInfo];
+ }
+ }
+ }
+ [weakSelf.deviceList addObjectsFromArray:finalDeviceList];
[weakSelf.tableView reloadData];
[weakSelf.tableView.header endRefreshing];
if (weakSelf.deviceList.count == totalCount)
@@ -310,7 +324,17 @@
// [weakSelf.view makeToast:error.description duration:2.0 position:@"bottom"];
// return;
// }
- [weakSelf.deviceList addObjectsFromArray:deviceList];
+
+ NSMutableArray *finalDeviceList=[NSMutableArray arrayWithArray:deviceList];
+ if (self.filterTypes&&self.filterTypes.count!=0) {//鍒ゆ柇鏄惁闇�瑕佽繃婊�
+ for (EZDeviceInfo *deviceInfo in deviceList) {
+ if ([self.filterTypes containsObject:[HDLEZConstants turnNil:deviceInfo.category]]) {
+ [finalDeviceList removeObject:deviceInfo];
+ }
+ }
+ }
+ [weakSelf.deviceList addObjectsFromArray:finalDeviceList];
+// [weakSelf.deviceList addObjectsFromArray:deviceList];
[weakSelf.tableView reloadData];
[weakSelf.tableView.footer endRefreshing];
if (weakSelf.deviceList.count == totalCount)
--
Gitblit v1.8.0