Ver Fonte

添加zip包下载功能1

tanghongbin há 5 anos atrás
pai
commit
e6e26136e2
1 ficheiros alterados com 4 adições e 2 exclusões
  1. 4 2
      Controller/FileController.py

+ 4 - 2
Controller/FileController.py

@@ -317,9 +317,11 @@ class DownloadUIDFileView(View):
                 uid_values = uid_values[0:quantity]
                 uid_qs = uid_qs[0: quantity]
                 if fileType == 'txt':
-                    return self.download_txt(uid_values, uid_qs, order)
+                    # return self.download_txt(uid_values, uid_qs, order)
+                    # return self.download_excel(uid_values, order)
+                    return self.download_zip(uid_values, order)
                 elif fileType == 'excel':
-                    return self.download_excel(uid_values)
+                    return self.download_excel(uid_values, order)
                 else:
                     return response.json(444, 'fileType')
             else: