mirror of
https://github.com/Evil0ctal/Douyin_TikTok_Download_API.git
synced 2025-04-23 07:34:27 +08:00
修复#4 Heroku主页无法访问
This commit is contained in:
parent
8a4f0e1a18
commit
380d0fc22b
@ -604,7 +604,7 @@ if __name__ == "__main__":
|
|||||||
with open('logs.txt', 'a') as f:
|
with open('logs.txt', 'a') as f:
|
||||||
f.write("时间: " + date + " " + "程序重载完毕!" + '\n')
|
f.write("时间: " + date + " " + "程序重载完毕!" + '\n')
|
||||||
app.add_url_rule('/', 'webio_view', webio_view(main), methods=['GET', 'POST', 'OPTIONS'])
|
app.add_url_rule('/', 'webio_view', webio_view(main), methods=['GET', 'POST', 'OPTIONS'])
|
||||||
# 修复Heroku主页不能访问
|
# 修复Heroku主页不能访问,感谢@wanghaisheng
|
||||||
# https://github.com/Evil0ctal/TikTokDownloader_PyWebIO/issues/4
|
# https://github.com/Evil0ctal/TikTokDownloader_PyWebIO/issues/4
|
||||||
if os.environ.get('PORT'):
|
if os.environ.get('PORT'):
|
||||||
port = int(os.environ.get('PORT'))
|
port = int(os.environ.get('PORT'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user