Selaa lähdekoodia

添加zip包下载功能1

tanghongbin 5 vuotta sitten
vanhempi
commit
e6e26136e2
1 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  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: