From 738c3274efe76e750dfd0aa099f1ae1fe1e3e0d7 Mon Sep 17 00:00:00 2001 From: hackycy Date: Sun, 28 Jun 2020 16:18:41 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Afix=20sm.ms=20delete=20method=20api?= =?UTF-8?q?=20for=20post,=20but=20it=20get?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/api/smms_api.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/smms_api.dart b/lib/api/smms_api.dart index 5266e59..f16c0c1 100644 --- a/lib/api/smms_api.dart +++ b/lib/api/smms_api.dart @@ -24,7 +24,7 @@ class SMMSApi { static Future delete(String hash) async { var op = await oAuth(); - Response res = await NetUtils.getInstance().post(BASE_URL + 'delete/' + hash ?? '', options: op); + Response res = await NetUtils.getInstance().get(BASE_URL + 'delete/' + hash ?? '', options: op); return res.data; }