DmitrMakeev
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1632,7 +1632,10 @@ def verify_phone_number(phone_number):
|
|
1632 |
verifikation_start = os.getenv('verifikation_start')
|
1633 |
|
1634 |
if verifikation_start == "1":
|
1635 |
-
|
|
|
|
|
|
|
1636 |
|
1637 |
full_url_ver = f"{wa_url}{wa_ak}{ws_url_ver}{wa_api_key}"
|
1638 |
|
@@ -1683,6 +1686,18 @@ def add_data_ver():
|
|
1683 |
verification_result = verify_phone_number(phone)
|
1684 |
ws_status = verification_result.get('existsWhatsapp', False)
|
1685 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1686 |
# Получение текущего времени в московском часовом поясе
|
1687 |
utc_now = datetime.utcnow()
|
1688 |
msk_tz = pytz.timezone('Europe/Moscow')
|
|
|
1632 |
verifikation_start = os.getenv('verifikation_start')
|
1633 |
|
1634 |
if verifikation_start == "1":
|
1635 |
+
wa_url = os.getenv('wa_url')
|
1636 |
+
wa_api_key = os.getenv('wa_api_key')
|
1637 |
+
wa_ak = os.getenv('ws_ak')
|
1638 |
+
ws_url_ver = "/checkWhatsapp/"
|
1639 |
|
1640 |
full_url_ver = f"{wa_url}{wa_ak}{ws_url_ver}{wa_api_key}"
|
1641 |
|
|
|
1686 |
verification_result = verify_phone_number(phone)
|
1687 |
ws_status = verification_result.get('existsWhatsapp', False)
|
1688 |
|
1689 |
+
# Определение переменных, если они не передаются
|
1690 |
+
vk_id = request.args.get('vk_id', None)
|
1691 |
+
chat_id = request.args.get('chat_id', None)
|
1692 |
+
ws_stop = request.args.get('ws_stop', None)
|
1693 |
+
web_statys = request.args.get('web_statys', None)
|
1694 |
+
fin_progress = request.args.get('fin_progress', None)
|
1695 |
+
shop_statys_full = request.args.get('shop_statys_full', None)
|
1696 |
+
ad_url = request.args.get('ad_url', None)
|
1697 |
+
curator = request.args.get('curator', None)
|
1698 |
+
key_pr = request.args.get('key_pr', None)
|
1699 |
+
n_con = request.args.get('n_con', None)
|
1700 |
+
|
1701 |
# Получение текущего времени в московском часовом поясе
|
1702 |
utc_now = datetime.utcnow()
|
1703 |
msk_tz = pytz.timezone('Europe/Moscow')
|