|
@@ -1,17 +1,15 @@
|
|
|
package com.fdkankan.scene.controller;
|
|
|
|
|
|
|
|
|
-import com.fdkankan.common.constant.ErrorCode;
|
|
|
import com.fdkankan.common.constant.SceneInfoReqType;
|
|
|
-import com.fdkankan.common.exception.BusinessException;
|
|
|
import com.fdkankan.scene.service.ISceneCustomService;
|
|
|
-import com.fdkankan.web.response.ResultData;
|
|
|
import com.fdkankan.scene.service.ISceneEditInfoService;
|
|
|
import com.fdkankan.scene.service.IScenePlusService;
|
|
|
import com.fdkankan.scene.vo.SceneCheckKeyParamVO;
|
|
|
import com.fdkankan.scene.vo.SceneInfoParamVO;
|
|
|
import com.fdkankan.scene.vo.SceneInfoVO;
|
|
|
import com.fdkankan.web.controller.BaseController;
|
|
|
+import com.fdkankan.web.response.ResultData;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -35,6 +33,8 @@ public class SceneController extends BaseController {
|
|
|
private IScenePlusService scenePlusService;
|
|
|
@Autowired
|
|
|
private ISceneCustomService sceneService;
|
|
|
+// @Resource
|
|
|
+// UserTokenApi userTokenApi;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -47,16 +47,15 @@ public class SceneController extends BaseController {
|
|
|
**/
|
|
|
@GetMapping(value = "/getInfo")
|
|
|
public SceneInfoVO getInfo(@Validated SceneInfoParamVO param) throws Exception{
|
|
|
- String token = this.getToken();
|
|
|
- String sysCode = null;
|
|
|
- String acctId = null;
|
|
|
- String RSP = "0";
|
|
|
- // TODO: 2024/6/5 调用统一认证api,如果出参中返回的
|
|
|
-
|
|
|
- if(!RSP.equals("0")){
|
|
|
- throw new BusinessException(ErrorCode.AUTH_FAIL);
|
|
|
- }
|
|
|
-
|
|
|
+// String token = param.getToken();
|
|
|
+// String sysCode = param.getSyscode();
|
|
|
+// String acctId = param.getAcctId();
|
|
|
+// String RSP = "-1";
|
|
|
+// // TODO: 2024/6/5 调用统一认证api,如果出参中返回的
|
|
|
+// JSONObject jsonObject = userTokenApi.checkProwadaToken(sysCode, acctId, token);
|
|
|
+// if(Objects.isNull(jsonObject) || !"0".equals(jsonObject.getString("RSP"))){
|
|
|
+// throw new BusinessException(ErrorCode.AUTH_FAIL);
|
|
|
+// }
|
|
|
param.setReqType(SceneInfoReqType.VIEW.code());
|
|
|
return sceneEditInfoService.getSceneInfo(param);
|
|
|
}
|