|
@@ -32,7 +32,7 @@ public class SpaceSdkController {
|
|
|
* @param platformType
|
|
|
*/
|
|
|
@PostMapping(value = "/upload", consumes = { "multipart/form-data" })
|
|
|
- public String upload(@RequestParam("file") MultipartFile file,
|
|
|
+ public ResultData upload(@RequestParam("file") MultipartFile file,
|
|
|
@RequestParam("version") String version,
|
|
|
@RequestParam("imprintCh") String imprintCh,
|
|
|
@RequestParam("imprintEn") String imprintEn,
|
|
@@ -40,7 +40,7 @@ public class SpaceSdkController {
|
|
|
@RequestParam("platformType") Integer platformType) {
|
|
|
|
|
|
try {
|
|
|
- return spaceSdkService.upload(file, version,imprintCh,imprintEn,isTop,platformType);
|
|
|
+ return ResultData.ok( spaceSdkService.upload(file, version,imprintCh,imprintEn,isTop,platformType));
|
|
|
}catch (Exception e){
|
|
|
throw new BusinessException(-1,"上传失败!");
|
|
|
}
|