|
@@ -12,6 +12,7 @@ import com.fdkankan.manage_jp.service.IProjectService;
|
|
import com.fdkankan.manage_jp.util.RsaUtils;
|
|
import com.fdkankan.manage_jp.util.RsaUtils;
|
|
import com.fdkankan.manage_jp.vo.request.ProjectParam;
|
|
import com.fdkankan.manage_jp.vo.request.ProjectParam;
|
|
import com.fdkankan.manage_jp.vo.request.SceneGpsParam;
|
|
import com.fdkankan.manage_jp.vo.request.SceneGpsParam;
|
|
|
|
+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.*;
|
|
@@ -29,6 +30,7 @@ import java.net.URLEncoder;
|
|
*/
|
|
*/
|
|
@RestController
|
|
@RestController
|
|
@RequestMapping("/manage_jp/projectScene")
|
|
@RequestMapping("/manage_jp/projectScene")
|
|
|
|
+@Slf4j
|
|
public class ProjectSceneController extends BaseController{
|
|
public class ProjectSceneController extends BaseController{
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
@@ -58,6 +60,7 @@ public class ProjectSceneController extends BaseController{
|
|
if (StringUtils.isBlank(ciphertext)){
|
|
if (StringUtils.isBlank(ciphertext)){
|
|
throw new BusinessException(ResultCode.PARAM_ERROR);
|
|
throw new BusinessException(ResultCode.PARAM_ERROR);
|
|
}
|
|
}
|
|
|
|
+ log.info("ciphertext:{},type:{}",ciphertext,type);
|
|
String deTxt = RsaUtils.decipher(ciphertext, RsaUtils.privateKey);
|
|
String deTxt = RsaUtils.decipher(ciphertext, RsaUtils.privateKey);
|
|
SceneGpsParam param = JSONObject.parseObject(deTxt, SceneGpsParam.class);
|
|
SceneGpsParam param = JSONObject.parseObject(deTxt, SceneGpsParam.class);
|
|
param.setType(type);
|
|
param.setType(type);
|