mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 16:18:22 +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:
|
case SearchType.article:
|
||||||
data = SearchArticleData.fromJson(res.data['data']);
|
data = SearchArticleData.fromJson(res.data['data']);
|
||||||
break;
|
break;
|
||||||
default:
|
// default:
|
||||||
break;
|
// break;
|
||||||
}
|
}
|
||||||
return Success(data);
|
return Success(data);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
@@ -111,6 +111,12 @@ abstract class ReplyController<R> extends CommonListController<R, ReplyInfo> {
|
|||||||
ReplyInfo? replyItem,
|
ReplyInfo? replyItem,
|
||||||
int? replyType,
|
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));
|
assert(replyItem != null || (oid != null && replyType != null));
|
||||||
String? hint;
|
String? hint;
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user