rabin 7 anni fa
parent
commit
570c55c35d
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 2 2
      admin/page/site.py
  2. 1 1
      service/ssgdfs.py

+ 2 - 2
admin/page/site.py

@@ -52,7 +52,7 @@ class site_update_path(Load):
 	@Web.auth
 	@Web.setting
 	def delete(self):
-		self.delete('site')
+		self.drop('site')
 
 class product_path(Load):
 	@Web.auth
@@ -106,7 +106,7 @@ class product_update_path(Load):
 	@Web.auth
 	@Web.setting
 	def delete(self):
-		self.delete('product')
+		self.drop('product')
 
 class order_path(Load):
 	@Web.auth

+ 1 - 1
service/ssgdfs.py

@@ -63,7 +63,7 @@ class Ssgdfs(object):
 	def check(self, product):
 		r = requests.get(product)
 		# 缺货标识
-		string = 'http://image2.ssgdfs.com/images/shop/cn/renewal/content/btn_soldout.gif'
+		string = 'btn_soldout.gif'
 		data = r.text
 		if string in data:
 			return False