mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 10:58:35 +08:00
[优化] 规则链优化
This commit is contained in:
@@ -21,7 +21,11 @@ func BuildRunDeviceRpc(deviceId, mode string, msgData map[string]interface{}) er
|
||||
if device.LinkStatus != global.ONLINE {
|
||||
return errors.New("设备不在线无法设置属性")
|
||||
}
|
||||
findOne := ruleService.RuleChainModelDao.FindOne(device.Product.RuleChainId)
|
||||
findOne, err := ruleService.RuleChainModelDao.FindOne(device.Product.RuleChainId)
|
||||
if err != nil {
|
||||
global.Log.Error("查询规则链数据失败", err)
|
||||
return errors.New("查询规则链数据失败")
|
||||
}
|
||||
ruleData := ruleEntity.RuleDataJson{}
|
||||
err = tool.StringToStruct(findOne.RuleDataJson, &ruleData)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user