mirror of
https://gitee.com/winc-link/hummingbird.git
synced 2025-04-21 00:42:43 +00:00
修复创建设备无法回调驱动bug
This commit is contained in:
parent
25ad18da2a
commit
ad9e138d8c
@ -162,6 +162,9 @@ func (p *deviceApp) AddDevice(ctx context.Context, req dtos.DeviceAddRequest) (s
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
go func() {
|
||||||
|
p.CreateDeviceCallBack(insertDevice)
|
||||||
|
}()
|
||||||
return id, nil
|
return id, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -310,7 +313,7 @@ func (p *deviceApp) DevicesUnBindDriver(ctx context.Context, req dtos.DevicesUnB
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
//DevicesBindProductId
|
// DevicesBindProductId
|
||||||
func (p *deviceApp) DevicesBindProductId(ctx context.Context, req dtos.DevicesBindProductId) error {
|
func (p *deviceApp) DevicesBindProductId(ctx context.Context, req dtos.DevicesBindProductId) error {
|
||||||
var searchReq dtos.DeviceSearchQueryRequest
|
var searchReq dtos.DeviceSearchQueryRequest
|
||||||
searchReq.ProductId = req.ProductId
|
searchReq.ProductId = req.ProductId
|
||||||
|
Loading…
x
Reference in New Issue
Block a user