1111
This commit is contained in:
+5
-2
@@ -72,6 +72,7 @@ public class OnboardingPublicSubmissionController
|
||||
public async Task UploadMaterial(
|
||||
[FromQuery] string token,
|
||||
[FromQuery] long materialTypeId,
|
||||
[FromQuery] long? taskMaterialId,
|
||||
[FromForm] IFormFile file)
|
||||
{
|
||||
if (file == null || file.Length == 0)
|
||||
@@ -84,7 +85,8 @@ public class OnboardingPublicSubmissionController
|
||||
Token = token,
|
||||
MaterialTypeId = materialTypeId,
|
||||
FileName = file.FileName,
|
||||
FileLength = file.Length
|
||||
FileLength = file.Length,
|
||||
TaskMaterialId = taskMaterialId
|
||||
});
|
||||
|
||||
var fileId = await _fileService.UploadFile(SysDictConst.FILE_ENGINE_ALIYUN_OSS, file);
|
||||
@@ -92,7 +94,8 @@ public class OnboardingPublicSubmissionController
|
||||
{
|
||||
Token = token,
|
||||
MaterialTypeId = materialTypeId,
|
||||
FileId = fileId
|
||||
FileId = fileId,
|
||||
TaskMaterialId = taskMaterialId
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user