feat:消费机支付卡顿的问题

This commit is contained in:
dzc committed 2026-10-23 17:13:37 +08:00
1 parent 531815517a
commit 6ec171d262
21 files changed
+1470 -98

No files matched your search

+17 -1
View File
@@ -57,7 +57,23 @@ abstract class SyncUserTool {
final obj = _parseStorageUser(user: user, updateDate: true);
obj.id = detail.id;
if (obj == detail) return;
await userDao.edit(obj);
// 规则查询可能与人员刷新并发,不能用旧快照整行回写覆盖新规则。
await app.dataBase.database.update(
'user_record',
{
'nickname': obj.nickname,
'mobile': obj.mobile,
'avatar': obj.avatar,
'walletCardNumber': obj.walletCardNumber,
'walletId': obj.walletId,
'walletTypeId': obj.walletTypeId,
'walletBalance': obj.walletBalance,
'canteenId': obj.canteenId,
'updateTime': DateTimeConverter().encode(obj.updateTime!),
},
where: 'id = ?',
whereArgs: [detail.id],
);
logger.i("|$_tag|,存储用户,修改成功|${obj.toJson()}|");
}
} catch (e, stack) {