mirror of
https://github.com/Evil0ctal/Douyin_TikTok_Download_API.git
synced 2025-04-22 18:36:56 +08:00
🚑️禁用PyWebIO的CDN
This commit is contained in:
parent
016eccc14e
commit
840b9435b2
@ -477,7 +477,7 @@ if __name__ == "__main__":
|
|||||||
date = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
|
date = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
|
||||||
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, cdn=False), methods=['GET', 'POST', 'OPTIONS'])
|
||||||
# 获取空闲端口
|
# 获取空闲端口
|
||||||
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