rabin 6 年之前
父節點
當前提交
d850d89036
共有 1 個文件被更改,包括 3 次插入1 次删除
  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')