class downMonth(View):
def get(self,request):
strTime1 = request.GET.get('time')
filepath = "{}/searchText/{}.zip".format( settings.base_DIR ,strTime1) # 文件所在位置
file = open(filepath, 'rb')
response = FileResponse(file)
response['Content-Disposition'] = 'attachment;filename="{}.{}"'.format(strTime1, "zip") # 文件名称和类型
return response



