小程序适配
All checks were successful
Deploy to Server / deploy (push) Successful in 25s

This commit is contained in:
jeremygan2021
2026-02-26 15:32:45 +08:00
parent 6910582b18
commit 6fee334ebf
2 changed files with 10 additions and 0 deletions

View File

@@ -1004,6 +1004,14 @@ def wechat_login(request):
country = request.data.get('country')
province = request.data.get('province')
city = request.data.get('city')
print("="*20 + " 小程序登录调试 " + "="*20)
print(f"收到登录请求: code={code}")
print(f"用户信息: nickname={nickname}, gender={gender}")
print(f"头像URL: {avatar_url}")
print(f"位置信息: country={country}, province={province}, city={city}")
print(f"完整数据: {request.data}")
print("="*50)
if not code:
return Response({'error': 'Code is required'}, status=400)