mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: whisper data
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -55,7 +55,7 @@ class AccountListModel {
|
|||||||
mid = json['mid'];
|
mid = json['mid'];
|
||||||
name = json['name'] ?? '';
|
name = json['name'] ?? '';
|
||||||
sex = json['sex'];
|
sex = json['sex'];
|
||||||
face = json['face'];
|
face = json['face'] ?? json['pic_url'];
|
||||||
sign = json['sign'];
|
sign = json['sign'];
|
||||||
rank = json['rank'];
|
rank = json['rank'];
|
||||||
level = json['level'];
|
level = json['level'];
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ class SessionList {
|
|||||||
this.liveStatus,
|
this.liveStatus,
|
||||||
this.bizMsgUnreadCount,
|
this.bizMsgUnreadCount,
|
||||||
// this.userLabel,
|
// this.userLabel,
|
||||||
|
this.accountInfo,
|
||||||
});
|
});
|
||||||
|
|
||||||
int? talkerId;
|
int? talkerId;
|
||||||
@@ -105,6 +106,9 @@ class SessionList {
|
|||||||
liveStatus = json["live_status"];
|
liveStatus = json["live_status"];
|
||||||
bizMsgUnreadCount = json["biz_msg_unread_count"];
|
bizMsgUnreadCount = json["biz_msg_unread_count"];
|
||||||
// userLabel = json["user_label"];
|
// userLabel = json["user_label"];
|
||||||
|
accountInfo = json['account_info'] == null
|
||||||
|
? null
|
||||||
|
: AccountListModel.fromJson(json['account_info']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -117,13 +117,7 @@ class WhisperController extends GetxController {
|
|||||||
if (accountInfo != null) {
|
if (accountInfo != null) {
|
||||||
i.accountInfo = accountInfo;
|
i.accountInfo = accountInfo;
|
||||||
}
|
}
|
||||||
if (i.talkerId == 0) {
|
if (i.talkerId == 844424930131966) {
|
||||||
i.accountInfo = AccountListModel(
|
|
||||||
name: '客服消息',
|
|
||||||
face:
|
|
||||||
'https://i0.hdslb.com/bfs/activity-plat/static/20230809/f87fc7ea98282a4dd48ec7743044b0bf/OWdoP9ZXAX.png',
|
|
||||||
);
|
|
||||||
} else if (i.talkerId == 844424930131966) {
|
|
||||||
i.accountInfo = AccountListModel(
|
i.accountInfo = AccountListModel(
|
||||||
name: 'UP主小助手',
|
name: 'UP主小助手',
|
||||||
face:
|
face:
|
||||||
|
|||||||
Reference in New Issue
Block a user