From 74def4452efe52ff598d98d9d9725ed798ec388f Mon Sep 17 00:00:00 2001 From: niuhuan Date: Mon, 28 Feb 2022 08:53:36 +0800 Subject: [PATCH] save image --- lib/basic/channels/nhentai.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/basic/channels/nhentai.dart b/lib/basic/channels/nhentai.dart index eeedd5a..e44e3b8 100644 --- a/lib/basic/channels/nhentai.dart +++ b/lib/basic/channels/nhentai.dart @@ -108,10 +108,10 @@ class NHentai { } /// 桌面端保存图片 - Future convertImageToJPEG100(String path, String folder) async { - return _channel.invokeMethod("convertImageToJPEG100", { + Future convertImageToJPEG100(String path, String dir) async { + return _flatInvoke("convertImageToJPEG100", { "path": path, - "folder": folder, + "dir": dir, }); }