mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: 添加特关投稿私信错误处理
This commit is contained in:
@@ -199,6 +199,7 @@ class ChatItem extends StatelessWidget {
|
||||
children: [
|
||||
GestureDetector(
|
||||
onTap: () async {
|
||||
try {
|
||||
SmartDialog.showLoading();
|
||||
var bvid = content["bvid"];
|
||||
final int cid = await SearchHttp.ab2c(bvid: bvid);
|
||||
@@ -210,6 +211,10 @@ class ChatItem extends StatelessWidget {
|
||||
'heroTag': heroTag,
|
||||
}),
|
||||
);
|
||||
} catch (err) {
|
||||
SmartDialog.dismiss();
|
||||
SmartDialog.showToast(err.toString());
|
||||
}
|
||||
},
|
||||
child: NetworkImgLayer(
|
||||
width: 220,
|
||||
|
||||
Reference in New Issue
Block a user