添加设备代码信息到 Android 和 iOS 平台信息;更新 Auth 页面以使用新的 TextEditingController 管理输入;重构推流测试页面以支持动态 RTMP URL 解析;删除不再需要的测试文件。

This commit is contained in:
2026-07-09 12:26:41 +08:00
parent 98a3381716
commit a1f6ea14cf
29 changed files with 267 additions and 1797 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ class ApiResponse<T> {
final String message;
final T? data;
bool get isSuccess => code >= 200 && code < 300;
bool get isSuccess => code == 0 || code >= 200 && code < 300;
factory ApiResponse.fromJson(
Map<String, dynamic> json, {
+11
View File
@@ -28,4 +28,15 @@ class HeaderInterceptor extends Interceptor {
handler.next(options);
}
@override
Future<void> onError(
DioException err,
ErrorInterceptorHandler handler,
) async {
if (err.response?.statusCode == 401) {
await AppStorage.remove(StorageKeys.authToken);
}
handler.next(err);
}
}