@@ -6,6 +6,7 @@ import rpx from "@/utils/rpx";
66import LinkText from "@/components/base/linkText" ;
77import { ImgAsset } from "@/constants/assetsConst" ;
88import ThemeText from "@/components/base/themeText" ;
9+ import telemetry from "@/core/telemetry" ;
910
1011interface DeviceInfoProps {
1112 colors : any ;
@@ -52,7 +53,9 @@ function DeviceInfoSection({ colors }: DeviceInfoProps) {
5253 } ;
5354
5455 getDeviceInfo ( ) ;
55- } , [ ] ) ; const systemDisplayName = Platform . OS === "ios" ? "iOS" : "Android" ;
56+ } , [ ] ) ;
57+
58+ const systemDisplayName = Platform . OS === "ios" ? "iOS" : "Android" ;
5659
5760 return (
5861 < View style = { [ styles . deviceInfoBox , { backgroundColor : colors . card , borderColor : colors . divider } ] } >
@@ -76,6 +79,10 @@ function DeviceInfoSection({ colors }: DeviceInfoProps) {
7679 < Text style = { [ styles . deviceInfoLabel , { color : colors . textSecondary } ] } > 设备型号:</ Text >
7780 < Text style = { [ styles . deviceInfoValue , { color : colors . text } ] } > { deviceInfo . deviceBrand } { deviceInfo . deviceModel } </ Text >
7881 </ View >
82+ < View style = { styles . deviceInfoRow } >
83+ < Text style = { [ styles . deviceInfoLabel , { color : colors . textSecondary } ] } > DebugID:</ Text >
84+ < Text style = { [ styles . deviceInfoValue , { color : colors . text } ] } > { telemetry . sessionId } </ Text >
85+ </ View >
7986 </ View >
8087 </ View >
8188 ) ;
@@ -116,6 +123,9 @@ class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
116123
117124 // 这里可以添加错误日志上报
118125 console . error ( "ErrorBoundary caught an error:" , error , errorInfo ) ;
126+ telemetry . logException ( error , {
127+ i : errorInfo ,
128+ } ) ;
119129 }
120130
121131 render ( ) {
0 commit comments