feat:bug修改
This commit is contained in:
1 parent
3729e3b896
commit
48c1ee8cb2
8 files changed
+143
-85
No files matched your search
@@ -123,6 +123,8 @@ class UserEntity extends Equatable {
|
||||
this.canteenId,
|
||||
this.createTime,
|
||||
this.updateTime,
|
||||
this.discountsUpdateTime,
|
||||
this.discountsList,
|
||||
});
|
||||
|
||||
/// 计算优惠后的价格
|
||||
|
||||
@@ -44,13 +44,13 @@ UserEntity _$UserEntityFromJson(Map<String, dynamic> json) => UserEntity(
|
||||
updateTime: json['updateTime'] == null
|
||||
? null
|
||||
: DateTime.parse(json['updateTime'] as String),
|
||||
)
|
||||
..discountsList = (json['discountsList'] as List<dynamic>?)
|
||||
?.map((e) => DiscountsItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList()
|
||||
..discountsUpdateTime = json['discountsUpdateTime'] == null
|
||||
discountsUpdateTime: json['discountsUpdateTime'] == null
|
||||
? null
|
||||
: DateTime.parse(json['discountsUpdateTime'] as String);
|
||||
: DateTime.parse(json['discountsUpdateTime'] as String),
|
||||
discountsList: (json['discountsList'] as List<dynamic>?)
|
||||
?.map((e) => DiscountsItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$UserEntityToJson(UserEntity instance) =>
|
||||
<String, dynamic>{
|
||||
|
||||
Reference in new issue
Block a user