From 5e54904a1c2809a1fbfa5e7cc49f3b706c96e753 Mon Sep 17 00:00:00 2001 From: justuser Date: Sat, 27 Jul 2024 19:35:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BC=D0=B5=D0=BD=D0=B0=20=D0=BF=D0=BE?= =?UTF-8?q?=D1=80=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.py | 2 +- call2api.py | 2 +- ds.py | 2 +- tg.py | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) 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)