From ad9e138d8cddfe73467ad3d649b481d159fb3502 Mon Sep 17 00:00:00 2001 From: gongcheng Date: Sun, 5 May 2024 15:17:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=9B=E5=BB=BA=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E6=97=A0=E6=B3=95=E5=9B=9E=E8=B0=83=E9=A9=B1=E5=8A=A8?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/hummingbird/core/application/deviceapp/deviceapp.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/hummingbird/core/application/deviceapp/deviceapp.go b/internal/hummingbird/core/application/deviceapp/deviceapp.go index de9b270..48aeb4e 100644 --- a/internal/hummingbird/core/application/deviceapp/deviceapp.go +++ b/internal/hummingbird/core/application/deviceapp/deviceapp.go @@ -162,6 +162,9 @@ func (p *deviceApp) AddDevice(ctx context.Context, req dtos.DeviceAddRequest) (s if err != nil { return "", err } + go func() { + p.CreateDeviceCallBack(insertDevice) + }() return id, nil } @@ -310,7 +313,7 @@ func (p *deviceApp) DevicesUnBindDriver(ctx context.Context, req dtos.DevicesUnB return nil } -//DevicesBindProductId +// DevicesBindProductId func (p *deviceApp) DevicesBindProductId(ctx context.Context, req dtos.DevicesBindProductId) error { var searchReq dtos.DeviceSearchQueryRequest searchReq.ProductId = req.ProductId