From 0de4cf306d8e13fd57b3e04bfb81362a10f12a4d Mon Sep 17 00:00:00 2001
From: Davin <591807572@qq.com>
Date: 星期一, 10 七月 2023 16:10:53 +0800
Subject: [PATCH] feature UI补全

---
 EZSDK/EZSDK/EZ/Global/EZHttpUtil.m |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/EZSDK/EZSDK/EZ/Global/EZHttpUtil.m b/EZSDK/EZSDK/EZ/Global/EZHttpUtil.m
index a24250c..79ce90b 100644
--- a/EZSDK/EZSDK/EZ/Global/EZHttpUtil.m
+++ b/EZSDK/EZSDK/EZ/Global/EZHttpUtil.m
@@ -425,18 +425,18 @@
 }
 
 /**
- *  @since 娌充笢鑾峰彇璁惧娑堟伅
- *  @param deviceId   璁惧id
+ *  @since 鑾峰彇闀滃ご闅愮閬斀鐘舵��
+ *  @param deviceSerial   璁惧搴忓垪鍙�
  *  @param completion   鍥炶皟block锛宔rror涓虹┖鏃惰〃绀烘垚鍔�
  */
-- (void)getCoverSwitchStatus:(NSString *)deviceId
+- (void)getCoverSwitchStatus:(NSString *)deviceSerial
                   completion:(void (^)(ResponseData *responseData))completion {
     //璁剧疆璇锋眰鍙傛暟
     NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
-    [parameters setValue:deviceId forKey:@"deviceId"];
+    [parameters setValue:deviceSerial forKey:@"deviceSerial"];
     [parameters setValue:@(1) forKey:@"platform"];
     [parameters setValue:[NSString stringWithFormat:@"%@",[GlobalKit shareKit].hdlAppKey] forKey:@"appKey"];
-    [parameters setValue:[GlobalKit shareKit].hdlHomeId forKey:@"homeId"];
+    [parameters setValue:@([[GlobalKit shareKit].hdlHomeId integerValue]) forKey:@"homeId"];
     
     parameters = [self GetSignRequestDictionary:parameters];
     
@@ -450,17 +450,17 @@
 }
 
 /**
- *  @since 娌充笢鑾峰彇璁惧娑堟伅
- *  @param deviceId   璁惧id
+ *  @since 璁剧疆闀滃ご闅愮閬斀鐘舵��
+ *  @param deviceSerial   璁惧搴忓垪鍙�
  *  @param enable   闅愮閬斀鐘舵��
  *  @param completion   鍥炶皟block锛宔rror涓虹┖鏃惰〃绀烘垚鍔�
  */
-- (void)getCoverSwitchStatus:(NSString *)deviceId
+- (void)coverSwitchStatus:(NSString *)deviceSerial
                       enable:(NSInteger)enable
                   completion:(void (^)(ResponseData *responseData))completion {
     //璁剧疆璇锋眰鍙傛暟
     NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
-    [parameters setValue:deviceId forKey:@"deviceId"];
+    [parameters setValue:deviceSerial forKey:@"deviceSerial"];
     [parameters setValue:@(enable) forKey:@"enable"];
     [parameters setValue:@(1) forKey:@"platform"];
     [parameters setValue:[NSString stringWithFormat:@"%@",[GlobalKit shareKit].hdlAppKey] forKey:@"appKey"];

--
Gitblit v1.8.0