rabin 7 years ago
parent
commit
c077865769
1 changed files with 1 additions and 0 deletions
  1. 1 0
      service/record.py

+ 1 - 0
service/record.py

@@ -41,6 +41,7 @@ class Record(object):
 			#更新网关状态
 			self.gateway(config['parent'], gateway['farm_id'], gateway['id'])
 			if config['method'] == 'control' and (value == '0' or value == 0):
+				model.update(farm_id=gateway['farm_id'],status=True,cdate='time')
 				return
 			model_type = Demeter.model('hardware_type')
 			model_type.key = config['method']