mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
feat: report dyn
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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} ',
|
||||
|
||||
Reference in New Issue
Block a user