mod: uploadImage params
This commit is contained in:
@ -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({
|
var formData = FormData.fromMap({
|
||||||
'file_up': await xFileToMultipartFile(xFile),
|
'file_up': await xFileToMultipartFile(xFile),
|
||||||
'biz': type,
|
'biz': type,
|
||||||
'csrf': await Request.getCsrf(),
|
'csrf': await Request.getCsrf(),
|
||||||
'build': 0,
|
'category': 'daily',
|
||||||
'mobi_app': 'web',
|
|
||||||
});
|
});
|
||||||
var res = await Request().post(
|
var res = await Request().post(
|
||||||
Api.uploadImage,
|
Api.uploadImage,
|
||||||
|
Reference in New Issue
Block a user