mod: 回复内容转义替换

This commit is contained in:
guozhigq
2023-07-12 23:33:46 +08:00
parent 828b5c39aa
commit 3f457aa7f6

View File

@ -1,14 +1,13 @@
class ReplyContent { class ReplyContent {
ReplyContent({ ReplyContent(
this.message, {this.message,
this.atNameToMid, // @的用户的mid null this.atNameToMid, // @的用户的mid null
this.memebers, // 被@的用户List 如果有的话 [] this.memebers, // 被@的用户List 如果有的话 []
this.emote, // 表情包 如果有的话 null this.emote, // 表情包 如果有的话 null
this.jumpUrl, // {} this.jumpUrl, // {}
this.pictures, // {} this.pictures, // {}
this.vote, this.vote,
this.richText this.richText});
});
String? message; String? message;
Map? atNameToMid; Map? atNameToMid;
@ -20,7 +19,7 @@ class ReplyContent {
Map? richText; Map? richText;
ReplyContent.fromJson(Map<String, dynamic> json) { ReplyContent.fromJson(Map<String, dynamic> json) {
message = json['message']; message = json['message'].replaceAll('&gt;', '>').replaceAll('&#34;', '"');
atNameToMid = json['at_name_to_mid'] ?? {}; atNameToMid = json['at_name_to_mid'] ?? {};
memebers = json['memebers'] ?? []; memebers = json['memebers'] ?? [];
emote = json['emote'] ?? {}; emote = json['emote'] ?? {};