diff --git a/api.py b/api.py index 992f527..d7e4be1 100644 --- a/api.py +++ b/api.py @@ -330,4 +330,4 @@ def get_passwd(it: Get_passwd): if __name__ == '__main__': import uvicorn - uvicorn.run(app, host='127.0.0.1', port=1111) + uvicorn.run(app, host='127.0.0.1', port=7001) diff --git a/call2api.py b/call2api.py index 2b9ba11..5102248 100644 --- a/call2api.py +++ b/call2api.py @@ -5,7 +5,7 @@ from xxhash import xxh32 from db import * global url_pre -url_pre = 'http://127.0.0.1:1111/' +url_pre = 'http://127.0.0.1:7001/' def hash(text): text = str(text) diff --git a/ds.py b/ds.py index f753088..39e5df7 100644 --- a/ds.py +++ b/ds.py @@ -250,7 +250,7 @@ def transfer_callback_api(it: Transfer_callback_api): return 'Error' def run_api(): - uvicorn.run(app, host='127.0.0.1', port=3333) + uvicorn.run(app, host='127.0.0.1', port=7003) # Запускаем API для переводов api = Thread(target=run_api) diff --git a/tg.py b/tg.py index ac62b07..56e0ed2 100644 --- a/tg.py +++ b/tg.py @@ -190,9 +190,9 @@ def pay(message): ds_dst = get_ds(API_TOKEN, dst_id) src_nick = get_nick(API_TOKEN, src_id) if tg_dst != 'null': - transfer_callback('http://127.0.0.1:2222/', API_TOKEN, src_nick, nick, amount) + transfer_callback('http://127.0.0.1:7002/', API_TOKEN, src_nick, nick, amount) elif ds_dst != 'null': - transfer_callback('http://127.0.0.1:3333/', API_TOKEN, src_nick, nick, amount) + transfer_callback('http://127.0.0.1:7003/', API_TOKEN, src_nick, nick, amount) else: bot.reply_to(message, '/pay ник количество') @@ -225,7 +225,7 @@ def transfer_callback_api(it: Transfer_callback_api): return 'Error' def run_api(): - uvicorn.run(app, host='127.0.0.1', port=2222) + uvicorn.run(app, host='127.0.0.1', port=7002) # Запускаем API для переводов api = Thread(target=run_api)