|
|
@@ -154,9 +154,8 @@ func (d *DeviceSceneService) checkDeviceCondition(config DeviceSceneConfig) (boo
|
|
|
// 判断是否满足条件并填入到result
|
|
|
fmt.Printf("判断条件:target_value:%s,value:%s,type:%d,operator:%d\n", v.TargetValue, j.Get(v.Field), v.FieldType, v.Operator)
|
|
|
result := utils.CheckValue(v.TargetValue, j.Get(v.Field), v.FieldType, v.Operator)
|
|
|
- fmt.Printf("判断结果:%v\n", result)
|
|
|
results = append(results, result)
|
|
|
- fmt.Printf("总判断结果:%v\n", result)
|
|
|
+ fmt.Printf("判断结果:%v\n", result)
|
|
|
}
|
|
|
switch config.DecisionExpr {
|
|
|
case "and":
|