From 4c1abca185a5727da6fb314a0cb4cd44bfe1b3bf Mon Sep 17 00:00:00 2001
From: Davin <591807572@qq.com>
Date: 星期五, 07 六月 2024 17:48:47 +0800
Subject: [PATCH] feature appkey修改
---
EZSDK/EZSDK/EZ/TempPassword/Controllers/HDLEZVisitorRecordViewController.m | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/EZSDK/EZSDK/EZ/TempPassword/Controllers/HDLEZVisitorRecordViewController.m b/EZSDK/EZSDK/EZ/TempPassword/Controllers/HDLEZVisitorRecordViewController.m
index d5fb9b0..d558857 100755
--- a/EZSDK/EZSDK/EZ/TempPassword/Controllers/HDLEZVisitorRecordViewController.m
+++ b/EZSDK/EZSDK/EZ/TempPassword/Controllers/HDLEZVisitorRecordViewController.m
@@ -47,7 +47,7 @@
}
-(void)addSubViews{
-
+ [super addSubViews];
//
_visitorRecordV=[[HDLEZVisitorRecordView alloc] init];
[self.view addSubview:_visitorRecordV];
@@ -78,7 +78,18 @@
[[EZHttpUtil sharedManager] getTempListByHDL:self.deviceId completion:^(ResponseData * _Nonnull responseData) {
HDLEZLog(@"涓存椂瀵嗙爜鍒楄〃锛�%@",responseData.data);
[weakSelf.header endRefreshing];
- weakSelf.visitorRecordV.temPList=[NSArray yy_modelArrayWithClass:[HDLEZTemInfoModel class] json:responseData.data];
+ if (responseData.success) {
+ weakSelf.visitorRecordV.temPList=[NSArray yy_modelArrayWithClass:[HDLEZTemInfoModel class] json:responseData.data];
+ if (weakSelf.visitorRecordV.temPList.count==0) {//灞曠ず鏃犳暟鎹�
+ [weakSelf showNoDataViewWithMessage:HDLEZLocallizedString(@"hdl_ez_common_no_data")];
+ }else{
+ [weakSelf hideNoDataView];
+ }
+ }else{
+ [weakSelf.view makeToast:responseData.message
+ duration:1.5
+ position:@"center"];
+ }
}];
}
--
Gitblit v1.8.0