From 3698c13aba988cd3e41b91b255e1c682c057e565 Mon Sep 17 00:00:00 2001
From: chenqiyang <1406175257@qq.com>
Date: 星期四, 23 三月 2023 11:49:58 +0800
Subject: [PATCH] 1.新增历史记录相关页面及功能 2.修改配网为热点配网 3.设备列表增加过滤门锁功能 4.增加添加设备通知功能

---
 EZSDK/EZSDK/EZ/Global/HDLEZConstants.m |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/EZSDK/EZSDK/EZ/Global/HDLEZConstants.m b/EZSDK/EZSDK/EZ/Global/HDLEZConstants.m
index c10fa7d..effd2de 100755
--- a/EZSDK/EZSDK/EZ/Global/HDLEZConstants.m
+++ b/EZSDK/EZSDK/EZ/Global/HDLEZConstants.m
@@ -287,4 +287,34 @@
 
     return targetDateStr;
 }
+
+
+/*鍒ゆ柇鏄惁涓虹函鏁板瓧
+ @param number 鍐呭
+ */
++(BOOL)validateNumber:(NSString*)number{
+    BOOL res = YES;
+    NSCharacterSet* tmpSet = [NSCharacterSet characterSetWithCharactersInString:@"0123456789"];
+    int i = 0;
+    while (i < number.length) {
+        NSString * string = [number substringWithRange:NSMakeRange(i, 1)];
+        NSRange range = [string rangeOfCharacterFromSet:tmpSet];
+        if (range.length == 0) {
+            res = NO;
+            break;
+        }
+        i++;
+    }
+    return res;
+}
+
+/* 灏唍il杞负""
+ */
++(NSString*)turnNil:(NSString *)str{
+    if (str == nil || str == NULL) {
+        return @"";
+    }else{
+        return str;
+    }
+}
 @end

--
Gitblit v1.8.0