Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-12-17 12:43:09 +08:00
parent ab1e5cb62a
commit b4fb7d14d4
31 changed files with 84 additions and 85 deletions

View File

@@ -20,7 +20,7 @@ class RepostPanel extends CommonRichTextPubPage {
super.key,
this.item,
this.dynIdStr,
this.callback,
this.onSuccess,
// video
this.rid,
this.dynType,
@@ -38,7 +38,7 @@ class RepostPanel extends CommonRichTextPubPage {
final DynamicItemModel? item;
final String? dynIdStr;
final VoidCallback? callback;
final VoidCallback? onSuccess;
@override
State<RepostPanel> createState() => _RepostPanelState();
@@ -432,7 +432,7 @@ class _RepostPanelState extends CommonRichTextPubPageState<RepostPanel> {
hasPub = true;
Get.back();
SmartDialog.showToast('转发成功');
widget.callback?.call();
widget.onSuccess?.call();
var id = result['data']?['dyn_id'];
RequestUtils.insertCreatedDyn(id);
RequestUtils.checkCreatedDyn(