|
@@ -28,6 +28,7 @@ import com.fdkankan.ucenter.vo.request.SceneParam;
|
|
|
import com.fdkankan.ucenter.vo.response.DownloadProcessVo;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.codec.language.Nysiis;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -329,6 +330,15 @@ public class SceneController extends BaseController {
|
|
|
@RequestParam(value = "title",required = false)String title,
|
|
|
@RequestParam(value = "newFileName",required = false)String newFileName ){
|
|
|
|
|
|
+
|
|
|
+ if(StringUtils.isBlank(newFileName)){
|
|
|
+ throw new BusinessException(ResultCode.PARAM_MISS);
|
|
|
+ }
|
|
|
+ String ossPath = "manage/e57/"+newFileName;
|
|
|
+ if(!fYunFileServiceInterface.fileExist(ossPath)){
|
|
|
+ throw new BusinessException(ResultCode.UPLOAD_ERROR3);
|
|
|
+ }
|
|
|
+
|
|
|
UploadEditSceneParam editSceneParam = new UploadEditSceneParam();
|
|
|
editSceneParam.setTitle(title);
|
|
|
editSceneParam.setUserId(getUser().getId());
|