|
@@ -12,6 +12,7 @@ import com.fdkankan.manage.service.IDownService;
|
|
import com.fdkankan.manage.service.IScenePlusService;
|
|
import com.fdkankan.manage.service.IScenePlusService;
|
|
import com.fdkankan.manage.service.ISceneProService;
|
|
import com.fdkankan.manage.service.ISceneProService;
|
|
import com.fdkankan.manage.vo.request.SceneParam;
|
|
import com.fdkankan.manage.vo.request.SceneParam;
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -25,6 +26,7 @@ import java.util.HashMap;
|
|
*/
|
|
*/
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/service/manage/scene")
|
|
@RequestMapping("/service/manage/scene")
|
|
|
|
+@Slf4j
|
|
public class SceneController {
|
|
public class SceneController {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
@@ -124,11 +126,17 @@ public class SceneController {
|
|
}
|
|
}
|
|
HashMap<String,Object> paramMap = new HashMap<>();
|
|
HashMap<String,Object> paramMap = new HashMap<>();
|
|
paramMap.put("num",num);
|
|
paramMap.put("num",num);
|
|
- JSONObject jsonObject = fdKKClient.rebuildScene(paramMap);
|
|
|
|
- Integer code = jsonObject.getInteger("code");
|
|
|
|
- if(code != 0){
|
|
|
|
- return ResultData.error(code,jsonObject.getString("message"));
|
|
|
|
|
|
+ try {
|
|
|
|
+ JSONObject jsonObject = fdKKClient.rebuildScene(paramMap);
|
|
|
|
+ Integer code = jsonObject.getInteger("code");
|
|
|
|
+ if(code != 0){
|
|
|
|
+ log.error("场景重算失败:{},{}",num,jsonObject);
|
|
|
|
+ throw new BusinessException(ResultCode.SCENE_REBUILD_ERROR);
|
|
|
|
+ }
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ throw new BusinessException(ResultCode.SCENE_REBUILD_ERROR);
|
|
}
|
|
}
|
|
|
|
+
|
|
return ResultData.ok();
|
|
return ResultData.ok();
|
|
}
|
|
}
|
|
}
|
|
}
|