rabin преди 7 години
родител
ревизия
6946df353b
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      admin/page/upload.py

+ 3 - 3
admin/page/upload.py

@@ -34,9 +34,9 @@ class upload_path(Load):
 		if crop:
 			#裁图类型,暂时居中裁图
 			file_path = cropImage(file_path)
-		#self.out('yes', {'src':url + file_path.replace(Demeter.path + 'runtime', '')})
-		file = url + file_path.replace(Demeter.path + 'runtime', '')
-		self.write({'state':True,'file_path':file, 'src':file})
+		self.out('yes', {'src':url + file_path.replace(Demeter.path + 'runtime', '')})
+		#file = url + file_path.replace(Demeter.path + 'runtime', '')
+		#self.write({'state':True,'file_path':file, 'src':file})
 
 def cropImage(file):
 	img = Image.open(file)