|
@@ -135,7 +135,7 @@ func (t *TempAlarmNode) newAlarmMessage(message *protocol.Message) error {
|
|
|
func (t *TempAlarmNode) evaluateConditions(message *protocol.Message) bool {
|
|
|
deviceId := message.MetaData["device_id"].(string)
|
|
|
// 判断设备类型
|
|
|
- if message.MetaData["product_key"].(string) != t.config.ProductKey || message.MetaData["product_key"].(string) != mainCode {
|
|
|
+ if message.MetaData["product_key"].(string) != t.config.ProductKey && message.MetaData["product_key"].(string) != mainCode {
|
|
|
return false
|
|
|
}
|
|
|
|