From 1c46db8faad9667219e9e944bb911de527289226 Mon Sep 17 00:00:00 2001
From: fish <gcslyp@gmail.com>
Date: Mon, 24 Jun 2019 09:43:11 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=97=A8=E7=A3=81=E4=BB=A5?=
 =?UTF-8?q?=E5=8F=8Aaq=E8=AE=BE=E5=A4=87=E6=95=B0=E6=8D=AE=E8=BD=AC?=
 =?UTF-8?q?=E5=8F=91=E8=A7=A3=E6=9E=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 router.go | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/router.go b/router.go
index 0d5dd3b..fef3b53 100644
--- a/router.go
+++ b/router.go
@@ -189,7 +189,7 @@ func dealDatav3(data []byte) string{
 		//红外人体感应
 		readyData.WriteString(cs2001Str)
 
-	  newdtype := strs[5]
+	  	newdtype := strs[5]
 
 		tmp := []byte{0, 0}
 		tof := tmp[0]
@@ -344,8 +344,9 @@ func dealDatav3(data []byte) string{
 
 	}else if datatype==3{
 		var R_data P1004_6
-		R_data.CODE = 1010
-		R_data.ID = "853c0000"
+		R_data.CODE = 1005
+		R_data.ID = adr
+		// "853c0000"
 		//尿布台
 			R_data.VERSION = "yunhorn_door_c_v1"
 		R_data.ONLINE = true
@@ -441,7 +442,8 @@ func dealDatav3(data []byte) string{
 
 		var R_data P1004_6
 		R_data.CODE = 1005
-		R_data.ID = "dc390000"
+		R_data.ID = adr
+		// "dc390000"
 		//尿布台
 		R_data.VERSION = "yunhorn_kq_c_v1"
 		R_data.ONLINE = true