mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
tweak (#1325)
* tweak * opt: async * tweak * opt: PopularSeries tile * tweak * opt: sc * mod: more account type * tweak * opt: qrcode * tweak * partial revert: opt: sc * fix * fix * mod: window enqueue
This commit is contained in:
committed by
GitHub
parent
67c25bd130
commit
4ae3bd2845
@@ -2,8 +2,8 @@ import 'package:PiliPlus/models_new/live/live_superchat/user_info.dart';
|
||||
import 'package:PiliPlus/utils/utils.dart';
|
||||
|
||||
class SuperChatItem {
|
||||
dynamic id;
|
||||
dynamic uid;
|
||||
int id;
|
||||
int? uid;
|
||||
int? price;
|
||||
String backgroundColor;
|
||||
String backgroundBottomColor;
|
||||
@@ -15,7 +15,7 @@ class SuperChatItem {
|
||||
bool expired = false;
|
||||
|
||||
SuperChatItem({
|
||||
this.id,
|
||||
required this.id,
|
||||
required this.uid,
|
||||
this.price,
|
||||
required this.backgroundColor,
|
||||
@@ -28,7 +28,7 @@ class SuperChatItem {
|
||||
});
|
||||
|
||||
factory SuperChatItem.fromJson(Map<String, dynamic> json) => SuperChatItem(
|
||||
id: json['id'] ?? Utils.generateRandomString(8),
|
||||
id: json['id'] ?? Utils.random.nextInt(2147483647),
|
||||
uid: json['uid'],
|
||||
price: json['price'] as int?,
|
||||
backgroundColor: json['background_color'] ?? '#EDF5FF',
|
||||
|
||||
Reference in New Issue
Block a user