rabin 4 years ago
parent
commit
f2da50c261
2 changed files with 14 additions and 0 deletions
  1. 10 0
      conf/dev.conf
  2. 4 0
      front/api/interface.py

+ 10 - 0
conf/dev.conf

@@ -82,6 +82,16 @@ url					= http://192.168.33.10:8091/device
 qrcode				= http://pan.baidu.com/share/qrcode?w=300&h=300&url=
 mobile				= True
 
+;网站前台配置
+[web]
+port                = 8089
+debug               = True
+max_buffer_size     = 210763776
+process             = 0
+url                 = http://www.xinnongbaohe.com/
+farmurl             = http://farm.xinnongbaohe.com/?id=
+originurl           = http://s.xinnongbaohe.com/?id=
+
 ;云端配置
 [zeus]
 host                = http://192.168.33.10:8088/

+ 4 - 0
front/api/interface.py

@@ -29,6 +29,8 @@ class sync_path(Load):
 				if info:
 					id = v['id']
 					del v['cdate']
+					if 'udate' in v:
+						del v['udate']
 					del v['id']
 					for i in v:
 						if v[i]:
@@ -36,6 +38,8 @@ class sync_path(Load):
 					self.service('common').update(table, id, update, cdate=False)
 				else:
 					del v['cdate']
+					if 'udate' in v:
+						del v['udate']
 					for i in v:
 						if v[i]:
 							update[i] = v[i]