|
@@ -102,6 +102,26 @@ public class SceneController {
|
|
|
return new AjaxMessage<>(ResultStatus.OK, avatar);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 新增
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "上传多个场景图片")
|
|
|
+ @RequestMapping(value = "addSceneImages", method = RequestMethod.POST)
|
|
|
+ @ResponseBody
|
|
|
+ public AjaxMessage<String> addUserPhotos(@ApiParam(value = "场景图片", required = true) @RequestParam("avatarfile") MultipartFile[] file) {
|
|
|
+ String avatar = "";
|
|
|
+ if (file.length > 0) {
|
|
|
+ for (MultipartFile item : file) {
|
|
|
+ try {
|
|
|
+ avatar += FileUploadUtil.uploadWeb(baseDir, item)+",";
|
|
|
+ } catch (IOException e) {
|
|
|
+ return new AjaxMessage<>(ResultStatus.ERROR, e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return new AjaxMessage<>(ResultStatus.OK, avatar.substring(0,avatar.length()-1));
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 新增
|
|
|
*/
|