feat: report dyn

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-16 16:40:51 +08:00
parent 83205caa80
commit 2dafffda94
4 changed files with 222 additions and 47 deletions

View File

@@ -178,24 +178,13 @@ InlineSpan? richNode(item, context) {
alignment: PlaceholderAlignment.middle,
child: GestureDetector(
onTap: () {
dynamic id;
if (item is DynamicItemModel) {
id = item.idStr;
} else if (item is ItemOrigModel &&
item.basic?['jump_url'] != null) {
id = RegExp(r'/(\d+)')
.firstMatch(item.basic?['jump_url'])
?.group(1);
}
if (id != null) {
Get.toNamed(
'/webview',
parameters: {
'url':
'https://www.bilibili.com/h5/lottery/result?business_id=$id'
},
);
}
Get.toNamed(
'/webview',
parameters: {
'url':
'https://www.bilibili.com/h5/lottery/result?business_id=${item.idStr}'
},
);
},
child: Text(
'${i.origText} ',