优化二维码识别
This commit is contained in:
1 parent
d656ce14eb
commit
ca7fda4308
9 files changed
+225
-62
No files matched your search
@@ -174,10 +174,18 @@ class ServiceQRCode {
|
||||
final String? userId;
|
||||
|
||||
/// 订单类型
|
||||
final String? orderType;
|
||||
@JsonKey(
|
||||
fromJson: JsonTool.stringToOrderType,
|
||||
toJson: JsonTool.orderTypeToString,
|
||||
)
|
||||
final OrderType? orderType;
|
||||
|
||||
/// 支付类型
|
||||
final String? payType;
|
||||
@JsonKey(
|
||||
fromJson: JsonTool.stringToOrderPayType,
|
||||
toJson: JsonTool.orderPayTypeToString,
|
||||
)
|
||||
final OrderPayType? payType;
|
||||
|
||||
/// 过期时间 -1 代表没有限制
|
||||
final int? exceedTime;
|
||||
|
||||
@@ -101,8 +101,8 @@ ServiceQRCode _$ServiceQRCodeFromJson(Map<String, dynamic> json) =>
|
||||
itemId: JsonTool.intToString((json['itemId'] as num?)?.toInt()),
|
||||
typeId: JsonTool.intToString((json['typeId'] as num?)?.toInt()),
|
||||
userId: JsonTool.intToString((json['userId'] as num?)?.toInt()),
|
||||
orderType: json['orderType'] as String?,
|
||||
payType: json['payType'] as String?,
|
||||
orderType: JsonTool.stringToOrderType(json['orderType'] as String?),
|
||||
payType: JsonTool.stringToOrderPayType(json['payType'] as String?),
|
||||
exceedTime: (json['exceedTime'] as num?)?.toInt(),
|
||||
extra: json['extra'] as String?,
|
||||
);
|
||||
@@ -113,8 +113,8 @@ Map<String, dynamic> _$ServiceQRCodeToJson(ServiceQRCode instance) =>
|
||||
'itemId': JsonTool.stringToInt(instance.itemId),
|
||||
'typeId': JsonTool.stringToInt(instance.typeId),
|
||||
'userId': JsonTool.stringToInt(instance.userId),
|
||||
'orderType': instance.orderType,
|
||||
'payType': instance.payType,
|
||||
'orderType': JsonTool.orderTypeToString(instance.orderType),
|
||||
'payType': JsonTool.orderPayTypeToString(instance.payType),
|
||||
'exceedTime': instance.exceedTime,
|
||||
'extra': instance.extra,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user