fix excel url

This commit is contained in:
RainSun 2020-08-06 13:22:32 +08:00
parent 5ea638b0db
commit 2d5c2eec2c
4 changed files with 331 additions and 8407 deletions

3
api.py
View File

@ -67,8 +67,9 @@ def sayHello():
# 用于接受微信发来的消息
@app.route('/wxpy/acceptmsg', methods=["POST", "GET"])
def acceptMsg():
print('1')
if request.method == 'GET':
# 请求方法为get进行sign验证
# 请求方法为get进行sign验证
return manageGet(request)
elif request.method == "POST":
# 请求方法为post为用户发的信息

View File

@ -160,7 +160,7 @@ def createWorkBook(data_list):
index += 1
# 获取一个唯一的文件名
new_filename = create_uuid() + '.xlsx'
addr_cache = '/data/api/saveExcel/' + new_filename
addr_cache = '/app/saveExcel/' + new_filename
# 保存到指定地址用nginx暴露这个文件夹映射到/excel/get
wb.save(addr_cache)
# 返回给前端的相对地址

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff