|
@@ -62,10 +62,16 @@ public class ProjectSceneController extends BaseController{
|
|
|
if (StringUtils.isBlank(ciphertext)){
|
|
|
throw new BusinessException(ResultCode.PARAM_ERROR);
|
|
|
}
|
|
|
- log.info(ciphertext);
|
|
|
log.info("ciphertext:{},type:{}",ciphertext,type);
|
|
|
String deTxt = RsaUtils.decipher(ciphertext, RsaUtils.privateKey);
|
|
|
- SceneGpsParam param = JSONObject.parseObject(deTxt, SceneGpsParam.class);
|
|
|
+ log.info("deTxt:{}",deTxt);
|
|
|
+ if(StringUtils.isBlank(deTxt)){
|
|
|
+ throw new BusinessException(ResultCode.PARAM_ERROR);
|
|
|
+ }
|
|
|
+ JSONObject jsonObject = JSONObject.parseObject(deTxt);
|
|
|
+ SceneGpsParam param = new SceneGpsParam();
|
|
|
+ param.setUserId(jsonObject.getLong("userId"));
|
|
|
+ param.setCompanyId(jsonObject.getLong("companyId"));
|
|
|
param.setType(type);
|
|
|
return Result.success(projectSceneGpsService.allSceneGps(param));
|
|
|
}
|