mod: 回复内容转义替换
This commit is contained in:
@ -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('>', '>').replaceAll('"', '"');
|
||||||
atNameToMid = json['at_name_to_mid'] ?? {};
|
atNameToMid = json['at_name_to_mid'] ?? {};
|
||||||
memebers = json['memebers'] ?? [];
|
memebers = json['memebers'] ?? [];
|
||||||
emote = json['emote'] ?? {};
|
emote = json['emote'] ?? {};
|
||||||
|
|||||||
Reference in New Issue
Block a user