实现ReleaseFeedWeightTask
This commit is contained in:
@@ -29,7 +29,7 @@ func NewGeneralDeviceService(deviceRepo repository.DeviceRepository, logger *log
|
||||
}
|
||||
}
|
||||
|
||||
func (g *GeneralDeviceService) Switch(device models.Device, action DeviceAction) error {
|
||||
func (g *GeneralDeviceService) Switch(device *models.Device, action DeviceAction) error {
|
||||
|
||||
// 校验设备参数及生成指令
|
||||
if *device.ParentID == 0 {
|
||||
|
||||
Reference in New Issue
Block a user