mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
check reply state
Closes #990 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -99,8 +99,8 @@ class SearchHttp {
|
||||
case SearchType.article:
|
||||
data = SearchArticleData.fromJson(res.data['data']);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
// default:
|
||||
// break;
|
||||
}
|
||||
return Success(data);
|
||||
} catch (err) {
|
||||
|
||||
@@ -111,6 +111,12 @@ abstract class ReplyController<R> extends CommonListController<R, ReplyInfo> {
|
||||
ReplyInfo? replyItem,
|
||||
int? replyType,
|
||||
}) {
|
||||
if (loadingState.value case Error error) {
|
||||
if (error.errMsg?.contains('关闭评论区') == true) {
|
||||
SmartDialog.showToast(error.errMsg!);
|
||||
return;
|
||||
}
|
||||
}
|
||||
assert(replyItem != null || (oid != null && replyType != null));
|
||||
String? hint;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user