mod: 回复内容转义替换
This commit is contained in:
@ -1,14 +1,13 @@
|
||||
class ReplyContent {
|
||||
ReplyContent({
|
||||
this.message,
|
||||
this.atNameToMid, // @的用户的mid null
|
||||
this.memebers, // 被@的用户List 如果有的话 []
|
||||
this.emote, // 表情包 如果有的话 null
|
||||
this.jumpUrl, // {}
|
||||
this.pictures, // {}
|
||||
this.vote,
|
||||
this.richText
|
||||
});
|
||||
ReplyContent(
|
||||
{this.message,
|
||||
this.atNameToMid, // @的用户的mid null
|
||||
this.memebers, // 被@的用户List 如果有的话 []
|
||||
this.emote, // 表情包 如果有的话 null
|
||||
this.jumpUrl, // {}
|
||||
this.pictures, // {}
|
||||
this.vote,
|
||||
this.richText});
|
||||
|
||||
String? message;
|
||||
Map? atNameToMid;
|
||||
@ -20,7 +19,7 @@ class ReplyContent {
|
||||
Map? richText;
|
||||
|
||||
ReplyContent.fromJson(Map<String, dynamic> json) {
|
||||
message = json['message'];
|
||||
message = json['message'].replaceAll('>', '>').replaceAll('"', '"');
|
||||
atNameToMid = json['at_name_to_mid'] ?? {};
|
||||
memebers = json['memebers'] ?? [];
|
||||
emote = json['emote'] ?? {};
|
||||
|
Reference in New Issue
Block a user