|
@@ -47,11 +47,15 @@ public class ProjectSceneController extends BaseController{
|
|
|
return Result.success(projectSceneGpsService.allSceneGps(param));
|
|
|
}
|
|
|
|
|
|
- @GetMapping("/createSceneShare/{type}")
|
|
|
- public Result createSceneShare(@PathVariable Integer type) {
|
|
|
+ @GetMapping("/createSceneShare/{type}/{projectId}")
|
|
|
+ public Result createSceneShare(@PathVariable Integer type,
|
|
|
+ @PathVariable Integer projectId) {
|
|
|
SceneGpsParam param = new SceneGpsParam();
|
|
|
param.setUserId(getUser().getId());
|
|
|
param.setCompanyId(getUser().getCompanyId());
|
|
|
+ if(projectId != null){
|
|
|
+ param.setProjectId(projectId);
|
|
|
+ }
|
|
|
String jsonString = JSONObject.toJSONString(param);
|
|
|
String ciphertext = RsaUtils.encipher(jsonString, RsaUtils.publicKey);
|
|
|
HashMap<String,Object> map = new HashMap<>();
|