Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2257,8 +2257,12 @@ def serve_html_vk(filename):
|
|
2257 |
try:
|
2258 |
# Получаем параметры из GET-запроса
|
2259 |
apps_id = request.args.get('apps_id')
|
2260 |
-
|
|
|
|
|
|
|
2261 |
|
|
|
2262 |
vk_app_id = request.args.get('vk_app_id')
|
2263 |
vk_are_notifications_enabled = request.args.get('vk_are_notifications_enabled')
|
2264 |
vk_is_app_user = request.args.get('vk_is_app_user')
|
@@ -2276,6 +2280,7 @@ def serve_html_vk(filename):
|
|
2276 |
|
2277 |
# Параметры запроса
|
2278 |
params = {
|
|
|
2279 |
'vk_app_id': vk_app_id,
|
2280 |
'vk_are_notifications_enabled': vk_are_notifications_enabled,
|
2281 |
'vk_is_app_user': vk_is_app_user,
|
|
|
2257 |
try:
|
2258 |
# Получаем параметры из GET-запроса
|
2259 |
apps_id = request.args.get('apps_id')
|
2260 |
+
in_url = request.args.get('fullUrl')
|
2261 |
+
|
2262 |
+
# Получаем базовую часть URL (до знака вопроса)
|
2263 |
+
base_url = urlparse(fullUrl).scheme + '://' + urlparse(in_url).netloc + urlparse(in_url).path
|
2264 |
|
2265 |
+
vk_access_token_settings = request.args.get('vk_access_token_settings')
|
2266 |
vk_app_id = request.args.get('vk_app_id')
|
2267 |
vk_are_notifications_enabled = request.args.get('vk_are_notifications_enabled')
|
2268 |
vk_is_app_user = request.args.get('vk_is_app_user')
|
|
|
2280 |
|
2281 |
# Параметры запроса
|
2282 |
params = {
|
2283 |
+
'vk_access_token_settings': vk_access_token_settings,
|
2284 |
'vk_app_id': vk_app_id,
|
2285 |
'vk_are_notifications_enabled': vk_are_notifications_enabled,
|
2286 |
'vk_is_app_user': vk_is_app_user,
|