chore: resolve WIP after merging internal/development

- .gitignore: keep api/uploads ignore and copyright_source_listing.pdf path

- auth: keep COS avatar upload URL; delete prior COS object when applying preset

- i18n: regenerate resources.ts (includes profile tapAwayToClose)

- Avatar/COS tests and personal-info remain from prior local work

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Kevin
2026-05-18 15:34:50 +08:00
parent 98802240ac
commit eabda2c6a9
12 changed files with 350 additions and 97 deletions

View File

@@ -3,6 +3,7 @@ import uuid
from fastapi import APIRouter, Depends, HTTPException, status
from app.core.config import settings
from app.core.cos_url_keys import avatar_url_for_api_response
from app.core.dependencies import get_current_user, get_object_storage
from app.core.logging import get_logger
from app.features.user.deps import get_user_service
@@ -50,7 +51,7 @@ async def get_user_profile(
phone=current_user.phone,
email=current_user.email,
nickname=current_user.nickname,
avatar_url=current_user.avatar_url,
avatar_url=avatar_url_for_api_response(current_user.avatar_url),
subscription_type=current_user.subscription_type,
created_at=current_user.created_at.isoformat(),
birth_year=current_user.birth_year,