feat: 修改id和sn显示
Some checks failed
Build Windows / build (push) Has been cancelled
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Has been cancelled

This commit is contained in:
speakeloudest 2025-11-09 22:55:01 -08:00
parent 920b86e56a
commit a884e6c838

View File

@ -69,8 +69,12 @@ class HIUserInfoView extends GetView<HIUserInfoController> {
children: [
Obx(() {
final account = KRAppRunData.getInstance().kr_account.value;
final isDeviceLogin = account != null && account.startsWith('9000');
if (isDeviceLogin) return const SizedBox();
return Text(
(account != null && account.isNotEmpty) ? account : '未绑定',
account ?? '',
style: TextStyle(
color: Colors.white,
fontSize: 20.sp,
@ -433,7 +437,7 @@ class HIUserInfoView extends GetView<HIUserInfoController> {
),
SizedBox(height: 4.h),
Text(
'ID: ${identifier.substring(0, identifier.length > 4 ? 4 : identifier.length)}$id',
'SN: ${identifier.substring(0, identifier.length > 4 ? 4 : identifier.length)}$id',
style: TextStyle(
color: Colors.white.withOpacity(0.9),
fontSize: 10.sp,