pp-bot
|
b8f1f82ee5
|
feat(login): 二级密码登录支持(STATUS_SECONDARY_PASSCODE_ERROR #1)
CI / Lint (push) Has been cancelled
## 问题
旧版 Flutter 项目在 /vcode/check 返回 30164 时展示二级密码输入界面;
新版完全缺失此路径,有二级密码的账号无法登录。
## 改动
### networks_sdk
- `networks_sdk_method_channel_datasource.dart`:executeRequest 的
generic catch 改为 rethrow,允许 decodeResponse override 抛出
自定义业务异常(原为 ApiError.unknown 包裹导致数据丢失)
### 数据层
- `errors.dart`:新增 `secondaryPasscodeRequired = 30164`
- `exceptions.dart`(新增):`SecondaryPasscodeRequiredException`
携带 vcodeToken / recoveryEmail / hint / resetStatus
- `verify_otp_request.dart`:override decodeResponse,拦截 30164,
从响应 data 提取字段,throw SecondaryPasscodeRequiredException
- `login_request.dart`:新增可选 password 字段 + toJson override
(条件序列化,null 时不带 password 字段)
- `auth_repository.dart`:新增 loginWithPasscode() 接口
- `auth_repository_impl.dart`:实现 loginWithPasscode()
### 业务层
- `login_usecase.dart`:新增 loginWithSecondaryPasscode()
(MD5 哈希 passcode → 调 AuthRepository.loginWithPasscode)
- `pubspec.yaml`:新增 crypto: ^3.0.6(用于 MD5)
### UI 层
- `login_state.dart`:新增 LoginStep.secondaryPasscode
+ vcodeToken / passcodeHint / recoveryEmail 字段
- `login_view_model.dart`:verifyAndLogin 捕获 SecondaryPasscodeRequiredException
跳转步骤 3;新增 verifyPasscode()
- `login_secondary_passcode_step.dart`(新增):密码输入 UI(hint 显示、
obscured 输入框、错误提示、忘记密码占位)
- `login_page.dart`:switch 路由接入 LoginStep.secondaryPasscode
|
2026-03-31 15:36:54 +09:00 |
|
pp-bot
|
2eb2299709
|
fix: 修复多图消息无法显示的三个根因
根因 1 — MessageItem.toEntity() id=0 主键碰撞:
WS 拉取的每条消息均用 id=0 insertOrReplace,批量消息相互覆盖,
DB 中只留最后一条。改为 id=messageId(服务端唯一 ID)。
根因 2 — SendMessageUseCase 乐观写入 id=0 碰撞:
批量图片发送时所有乐观行共享 id=0,逐条覆盖。
改用负微秒时间戳作为临时唯一 id,HTTP 确认后用真实 messageId 替换。
根因 3 — watchByChatId 无 ORDER BY:
DB 消息顺序不确定,宫格分组算法依赖时间升序失败。
在 MessageRepositoryImpl.watchByChatId 及 _buildDisplayItems 中
分别按 sendTime ASC + chatIdx ASC 排序。
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-24 15:45:41 +09:00 |
|
Happi (哈比)
|
5eaff7ede3
|
同步dbretry接口
|
2026-03-10 12:49:49 +08:00 |
|
Happi (哈比)
|
1c996075e3
|
更新upsert
|
2026-03-10 12:41:02 +08:00 |
|
Happi (哈比)
|
8130bf63fa
|
所有数据库表,提供相应的provider、桥接等方法
|
2026-03-10 12:09:45 +08:00 |
|
Happi (哈比)
|
084b7bbd23
|
Merge branch 'dev' into happi/dev/database-update
# Conflicts:
# apps/im_app/lib/features/login/presentation/login_view_model.dart
|
2026-03-09 20:17:03 +08:00 |
|
Happi (哈比)
|
8f77a14818
|
业务更新User所需(企业成员、聊天室群组成员)
|
2026-03-09 19:15:51 +08:00 |
|
Cody
|
3c1976b343
|
网络请求打通,ws 打通
|
2026-03-09 19:05:55 +08:00 |
|
Happi (哈比)
|
c278d1329e
|
Merge branch 'dev' into happi/dev/database-update
# Conflicts:
# apps/im_app/lib/data/models/user_dto.dart
# apps/im_app/lib/data/remote/login_request.dart
# apps/im_app/lib/features/chat/presentation/chat_db_test_view_model.dart
# apps/im_app/lib/features/chat/view/chat_db_test_page.dart
# apps/im_app/lib/features/login/presentation/login_view_model.dart
|
2026-03-09 15:08:45 +08:00 |
|
Happi (哈比)
|
7b78da86e7
|
更新测试案例
|
2026-03-09 13:03:44 +08:00 |
|
Cody
|
03b89706a5
|
极简接口定义和响应定义,支持更多的解析器
|
2026-03-09 11:04:52 +08:00 |
|
Cody
|
c310ded32a
|
Merge remote-tracking branch 'origin/dev' into cody/netwrok_SDK
# Conflicts:
# apps/im_app/lib/features/chat/presentation/chat_db_test_view_model.dart
# apps/im_app/lib/features/login/presentation/login_view_model.dart
修复逻辑漏洞,性能优化
|
2026-03-08 20:47:28 +08:00 |
|
Happi (哈比)
|
a066e9d2dc
|
1)修改数据库命名,不和业务使用重合。
2)修改user 表,uid为unique, 聊天室文件夹name unique移除
|
2026-03-07 17:29:32 +08:00 |
|
Cody
|
bf9e099747
|
Initial project
|
2026-03-06 15:05:53 +08:00 |
|