fix: uploadBfs

This commit is contained in:
bggRGjQaUbCoE
2024-10-31 09:48:24 +08:00
parent aaa9e45299
commit 23bd32a35c
4 changed files with 18 additions and 6 deletions

View File

@@ -233,13 +233,16 @@ class MsgHttp {
}
}
static Future uploadBfs(
static Future uploadBfs({
dynamic path,
) async {
String? category,
String? biz,
}) async {
String csrf = await Request.getCsrf();
Map<String, dynamic> data = await WbiSign().makSign({
'file_up': await MultipartFile.fromFile(path),
'category': 'daily',
if (category != null) 'category': category,
if (biz != null) 'biz': biz,
'csrf': csrf,
});
var res = await Request().post(