From da52c63056c89d882a4c824d1a3a177d356a21b1 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Thu, 31 Oct 2024 00:29:53 +0800 Subject: [PATCH] mod: uploadImage params --- lib/http/reply.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/http/reply.dart b/lib/http/reply.dart index c37a92cf..846ef45b 100644 --- a/lib/http/reply.dart +++ b/lib/http/reply.dart @@ -136,13 +136,13 @@ class ReplyHttp { } // 图片上传 - static Future uploadImage({required XFile xFile, String type = 'im'}) async { + static Future uploadImage( + {required XFile xFile, String type = 'new_dyn'}) async { var formData = FormData.fromMap({ 'file_up': await xFileToMultipartFile(xFile), 'biz': type, 'csrf': await Request.getCsrf(), - 'build': 0, - 'mobi_app': 'web', + 'category': 'daily', }); var res = await Request().post( Api.uploadImage,