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

@@ -488,10 +488,11 @@ class _CreateDynPanelState extends CommonPublishPageState<CreateDynPanel> {
if (result['status']) {
Get.back();
SmartDialog.showToast('发布成功');
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']);
debugPrint('failed to publish: ${result['msg']}');