rabin %!s(int64=7) %!d(string=hai) anos
pai
achega
ba56f4ff68
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      service/ssgdfs.py

+ 4 - 4
service/ssgdfs.py

@@ -65,13 +65,13 @@ class Ssgdfs(object):
 		#r = requests.get(product)
 		self.get(product)
 		data = self.driver.page_source
-		# 缺货标识
-		string = 'btn_soldout.gif'
+		# 可以购买
+		string = 'btn_direct_buy.gif'
 		#data = r.text
 		if string in data:
-			return False
-		else:
 			return True
+		else:
+			return False
 
 	def open(self):
 		#self.display = Display(visible=0, size=(800, 600))