mod: 添加特关投稿私信错误处理

This commit is contained in:
orz12
2024-02-03 00:26:34 +08:00
parent a95082fbdb
commit 8abbab4c88

View File

@@ -199,6 +199,7 @@ class ChatItem extends StatelessWidget {
children: [ children: [
GestureDetector( GestureDetector(
onTap: () async { onTap: () async {
try {
SmartDialog.showLoading(); SmartDialog.showLoading();
var bvid = content["bvid"]; var bvid = content["bvid"];
final int cid = await SearchHttp.ab2c(bvid: bvid); final int cid = await SearchHttp.ab2c(bvid: bvid);
@@ -210,6 +211,10 @@ class ChatItem extends StatelessWidget {
'heroTag': heroTag, 'heroTag': heroTag,
}), }),
); );
} catch (err) {
SmartDialog.dismiss();
SmartDialog.showToast(err.toString());
}
}, },
child: NetworkImgLayer( child: NetworkImgLayer(
width: 220, width: 220,