stevesensei
97c9fba14e
feat(online): implement IchniOnline API integration with BestHTTP
- Add BestHTTP reference to IchniOnline.asmdef
- Create ApiClient.cs: HTTP singleton with JWT auto-injection
- Create ApiResponse.cs: ResponseCode enum, GlobalResponse<T>, ApiResult<T>
- Create AuthDtos.cs: ThirdPartyLoginRequestDto, LoginRequestDto, RegisterRequestDto, LoginResponseDto, UserResponseDto
- Create AuthService.cs: TapTap/password/register/logout flows with events
- Extend LoginCacheData.cs: JWT + server user data fields
- Extend LoginCacheManager.cs: SaveAuthSession, ClearSession, HasValidSession
- Extend ThirdPartyServiceManager.cs: OnLoginWithToken event for AuthService
- Update LoginPage.cs: Use AuthService with loading states and null-safe callbacks
- Update StartUIPage.cs: Use HasValidSession for session check
Fixes post-review:
- LoginPage: Add null check for Register success (response may be null)
- AuthService: Add try/catch around TapTap login API call
2026-06-15 16:56:00 +08:00
..
2026-06-05 04:45:57 -04:00
2026-06-12 07:03:21 -04:00
2026-03-14 03:13:10 -04:00
2026-03-14 03:13:10 -04:00
2026-06-09 11:21:59 -04:00
2026-06-15 14:54:30 +08:00
2026-06-15 16:56:00 +08:00
2025-08-22 14:54:40 -04:00
2026-03-14 03:13:10 -04:00
2026-06-09 11:21:59 -04:00
2026-03-14 03:13:10 -04:00
2026-06-15 14:54:30 +08:00
2026-03-14 03:13:10 -04:00
2025-06-03 02:42:28 -04:00
2026-03-14 03:13:10 -04:00
2026-03-14 03:13:10 -04:00
2025-06-03 02:42:28 -04:00
2025-06-03 02:42:28 -04:00
2026-04-24 14:09:37 +08:00
2025-06-14 14:42:49 -04:00
2025-06-06 10:14:55 -04:00
2026-03-14 03:13:10 -04:00
2025-06-03 02:42:28 -04:00
2025-06-03 02:42:28 -04:00