mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: uploadBfs
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user