|
@@ -21,6 +21,7 @@ import java.io.UnsupportedEncodingException;
|
|
import java.net.URL;
|
|
import java.net.URL;
|
|
import java.net.URLDecoder;
|
|
import java.net.URLDecoder;
|
|
import java.net.URLEncoder;
|
|
import java.net.URLEncoder;
|
|
|
|
+import java.util.HashMap;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -46,14 +47,17 @@ public class ProjectSceneController extends BaseController{
|
|
return Result.success(projectSceneGpsService.allSceneGps(param));
|
|
return Result.success(projectSceneGpsService.allSceneGps(param));
|
|
}
|
|
}
|
|
|
|
|
|
- @PostMapping("/createSceneShare")
|
|
|
|
- public Result createSceneShare() throws UnsupportedEncodingException {
|
|
|
|
|
|
+ @GetMapping("/createSceneShare/{type}")
|
|
|
|
+ public Result createSceneShare(@PathVariable Integer type) {
|
|
SceneGpsParam param = new SceneGpsParam();
|
|
SceneGpsParam param = new SceneGpsParam();
|
|
param.setUserId(getUser().getId());
|
|
param.setUserId(getUser().getId());
|
|
param.setCompanyId(getUser().getCompanyId());
|
|
param.setCompanyId(getUser().getCompanyId());
|
|
String jsonString = JSONObject.toJSONString(param);
|
|
String jsonString = JSONObject.toJSONString(param);
|
|
String ciphertext = RsaUtils.encipher(jsonString, RsaUtils.publicKey);
|
|
String ciphertext = RsaUtils.encipher(jsonString, RsaUtils.publicKey);
|
|
- return Result.success(Result.SUCCESS_MSG,"/service/manage_jp/projectScene/getSceneMap/"+ URLEncoder.encode(ciphertext,"utf-8")+"/1");
|
|
|
|
|
|
+ HashMap<String,Object> map = new HashMap<>();
|
|
|
|
+ map.put("type",type);
|
|
|
|
+ map.put("ciphertext",ciphertext);
|
|
|
|
+ return Result.success(map);
|
|
}
|
|
}
|
|
|
|
|
|
@GetMapping("/getSceneMap/{ciphertext}/{type}")
|
|
@GetMapping("/getSceneMap/{ciphertext}/{type}")
|