Commit 7acc816f by chamberone

feat: 优化saas链接

1 parent d6915518
...@@ -48,6 +48,9 @@ public class BusinessBlockServiceImpl implements BusinessBlockService { ...@@ -48,6 +48,9 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
@Value("${SaaS.ak}") @Value("${SaaS.ak}")
String ak; String ak;
@Value("${SaaS.url}")
String url;
@Override @Override
public Result<?> businessServerBlocks(String levelType, String levelValue, long page, long size, String layerId, String teamId) { public Result<?> businessServerBlocks(String levelType, String levelValue, long page, long size, String layerId, String teamId) {
BusinessServerBlocksRespDTO resp = new BusinessServerBlocksRespDTO(); BusinessServerBlocksRespDTO resp = new BusinessServerBlocksRespDTO();
...@@ -195,9 +198,15 @@ public class BusinessBlockServiceImpl implements BusinessBlockService { ...@@ -195,9 +198,15 @@ public class BusinessBlockServiceImpl implements BusinessBlockService {
if (block == null) { if (block == null) {
throw new BusinessException("区块不存在"); throw new BusinessException("区块不存在");
} }
// 跳转规则: TODO
// TODO 根据当前block转换成分部,再转换成对应账号信息
String userAccount = "sMvf3yZWA69lKcvlgKcOHQ==";
String password = "qjOHxpQPXLnJP+Jq1CZGBQ==";
// 跳转SaaS url
HashMap<String, String> res = new HashMap<>(); HashMap<String, String> res = new HashMap<>();
res.put("url", "https://pea-test.bshg.com.cn/mlAutoLogin?userAccount=WVyjhzcOeIUc5rl74hdaqw==&password=qjOHxpQPXLnJP+Jq1CZGBQ==&jump=basedata&navHidden=true"); res.put("url", url + "/mlAutoLogin?userAccount=" + userAccount + "&password=" + password
+ "&jump=basedata&navHidden=true&layerId=" + block.getLayerId() + "&areaId=" + block.getBlockId());
return Result.success(res); return Result.success(res);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!