mod: uploadImage params

This commit is contained in:
guozhigq
2024-10-31 00:29:53 +08:00
parent f71ab166c8
commit da52c63056

View File

@ -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,