rabin 6 years ago
parent
commit
227ab08bec
2 changed files with 5 additions and 3 deletions
  1. 3 3
      conf/env.conf
  2. 2 0
      service/device.py

+ 3 - 3
conf/env.conf

@@ -42,7 +42,7 @@ prefix				= demeter
 ;后台配置
 [admin]
 port				= 8087
-debug				= False
+debug				= True
 ;请求的buffersize
 max_buffer_size		= 210763776
 ;子进程
@@ -53,7 +53,7 @@ top 				= farm
 ;前台配置
 [front]
 port				= 8088
-debug				= False
+debug				= True
 max_buffer_size		= 210763776
 process				= 0
 ;url					= http://www.xinnongbaohe.com:8088/device
@@ -64,7 +64,7 @@ mobile				= True
 ;网站前台配置
 [web]
 port				= 8089
-debug				= False
+debug				= True
 max_buffer_size		= 210763776
 process				= 0
 ;url					= http://www.xinnongbaohe.com:8089/

+ 2 - 0
service/device.py

@@ -27,6 +27,7 @@ class Device(object):
 				Demeter.service('common').update('device_info', None, insert)
 
 				# 电源
+				"""
 				insert = {}
 				insert['farm_id'] = farm_id
 				insert['name'] = '电源状态'
@@ -37,6 +38,7 @@ class Device(object):
 				insert['type_id'] = 8
 				insert['status'] = False
 				Demeter.service('common').update('device_info', None, insert)
+				"""
 			
 	# 批量处理开关
 	def switchMul(self, value):