opt: create dynamic panel

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-30 11:59:12 +08:00
parent bef7a28229
commit 991ae8518a
5 changed files with 437 additions and 306 deletions

View File

@@ -149,6 +149,7 @@ class MsgHttp {
List? pics,
int? publishTime,
ReplyOption replyOption = ReplyOption.allow,
int? privatePub,
}) async {
String csrf = await Request.getCsrf();
var res = await Request().post(
@@ -181,6 +182,10 @@ class MsgHttp {
: pics != null
? 2
: 1,
if (privatePub != null)
'create_option': {
'private_pub': privatePub,
},
if (pics != null) 'pics': pics,
"attach_card": null,
"upload_id":

View File

@@ -97,7 +97,7 @@ class SearchHttp {
if (pubEnd != null) 'pubtime_end_s': pubEnd,
};
var res = await Request().get(Api.searchByType, queryParameters: reqData);
if (res.data['code'] == 0) {
if (res.data['code'] is int && res.data['code'] == 0) {
dynamic data;
try {
switch (searchType) {