fix excel url
This commit is contained in:
parent
5ea638b0db
commit
2d5c2eec2c
3
api.py
3
api.py
@ -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,为用户发的信息
|
||||
|
@ -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)
|
||||
# 返回给前端的相对地址
|
||||
|
6979
logs/acess.log
6979
logs/acess.log
File diff suppressed because it is too large
Load Diff
1754
logs/error.log
1754
logs/error.log
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user