From f39ab0e80fdf35d5898299db2f640f3c3eac5110 Mon Sep 17 00:00:00 2001 From: yang <3264085417@qq.com> Date: Fri, 20 Oct 2023 14:51:33 +0800 Subject: [PATCH] fix: store box_info Signed-off-by: yang <3264085417@qq.com> --- biz/service/pair/register_box.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/biz/service/pair/register_box.go b/biz/service/pair/register_box.go index 68c608b..3b9c0bd 100644 --- a/biz/service/pair/register_box.go +++ b/biz/service/pair/register_box.go @@ -66,7 +66,9 @@ func ServiceRegisterBox() error { } logger.AppLogger().Infof("ServiceRegisterBox, rsp:%+v", resp) - + // 保存盒子信息 + device.SetNetworkClient(&device.NetworkClientInfo{ClientID: resp.NetWorkClient.ClientId, + SecretKey: resp.NetWorkClient.SecretKey}) return nil }