rabin 6 years ago
parent
commit
d850d89036
1 changed files with 3 additions and 1 deletions
  1. 3 1
      front/api/device.py

+ 3 - 1
front/api/device.py

@@ -253,11 +253,13 @@ class pic_path(Load):
 	def get(self):
 		id = self.input('id', None)
 		device = self.input('device', None)
-		if id:
+		if device:
+			"""
 			self.data['info'] = self.service('common').one('device_gateway', id=id)
 			if not self.data['info']:
 				self.out('no')
 				return
+			"""
 
 			self.data['url'] = self.request.protocol + "://" + self.request.host + '/'
 			self.data['search_date'] = self.input('search_date')