Mi cuenta: enlace a Battlepay y saldo de créditos bnet
- my_account: añade battlepay_credits (leído de battlenet_accounts.battlePayCredits) - bnet.get_battlepay_credits() defensivo (0 si la columna no existe) - partials/my-account.html: muestra 'Créditos Battlepay' y añade botón 'Tienda del cliente' que enlaza a /es/battlepay/ Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -713,8 +713,13 @@ def my_account(request):
|
||||
token_status = "Sin solicitar"
|
||||
token_date = None
|
||||
|
||||
# Créditos Battlepay de la cuenta Battle.net
|
||||
with connections['acore_auth'].cursor() as cursor:
|
||||
battlepay_credits = bnet.get_battlepay_credits(cursor, request.session.get('bnet_id'))
|
||||
|
||||
return render(request, 'my-account/my-account.html', {
|
||||
'is_logged_in': is_logged_in,
|
||||
'battlepay_credits': battlepay_credits,
|
||||
'user_info': {
|
||||
'username': account_data[1],
|
||||
'reg_mail': account_data[2],
|
||||
|
||||
Reference in New Issue
Block a user