feat: manual check dyn

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-03 13:16:51 +08:00
parent e190ca5868
commit 7437d8c592
5 changed files with 81 additions and 53 deletions

View File

@@ -386,10 +386,11 @@ class _RepostPanelState extends CommonPublishPageState<RepostPanel> {
Get.back();
SmartDialog.showToast('转发成功');
widget.callback?.call();
Future.wait([
Utils.insertCreatedDyn(result),
Utils.checkCreatedDyn(result, editController.text)
]);
Utils.insertCreatedDyn(result);
Utils.checkCreatedDyn(
id: result['data']?['dyn_id'],
dynText: editController.text,
);
} else {
SmartDialog.showToast(result['msg']);
}